You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/01/13 16:15:52 UTC
[5/5] incubator-mynewt-core git commit: oic; random.c coding style.
oic; random.c coding style.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/79ad6d94
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/79ad6d94
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/79ad6d94
Branch: refs/heads/develop
Commit: 79ad6d94f5a38bd9f14d3ec5298abe3116c645d9
Parents: bceee85
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jan 12 17:39:37 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jan 12 17:39:37 2017 -0800
----------------------------------------------------------------------
net/oic/src/port/mynewt/random.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/79ad6d94/net/oic/src/port/mynewt/random.c
----------------------------------------------------------------------
diff --git a/net/oic/src/port/mynewt/random.c b/net/oic/src/port/mynewt/random.c
index c656f6d..ac124e0 100644
--- a/net/oic/src/port/mynewt/random.c
+++ b/net/oic/src/port/mynewt/random.c
@@ -19,13 +19,16 @@
#include "../oc_random.h"
#include <stdlib.h>
-void oc_random_init(unsigned short seed) {
+void oc_random_init(unsigned short seed)
+{
srand(seed);
}
-unsigned short oc_random_rand(void) {
+unsigned short oc_random_rand(void)
+{
return rand();
}
-void oc_random_destroy(void) {
+void oc_random_destroy(void)
+{
}