Code Review
/
ric-app
/
rc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Container tag updated
[ric-app/rc.git]
/
e2sm
/
lib
/
asn_random_fill.c
diff --git
a/e2sm/lib/asn_random_fill.c
b/e2sm/lib/asn_random_fill.c
index
2e3e892
..
819cf70
100644
(file)
--- a/
e2sm/lib/asn_random_fill.c
+++ b/
e2sm/lib/asn_random_fill.c
@@
-48,11
+48,7
@@
asn_random_between(intmax_t lb, intmax_t rb) {
for(; got_entropy < range;) {
got_entropy = (got_entropy << 24) | 0xffffff;
for(; got_entropy < range;) {
got_entropy = (got_entropy << 24) | 0xffffff;
-#ifdef WIN32
- value = (value << 24) | (rand() % 0xffffff); //MCHECK:for building on Windows
-#else
- value = (value << 24) | (random() % 0xffffff); //MCHECK:for building on Linux
-#endif
+ value = (value << 24) | (random() % 0xffffff);
}
return lb + (intmax_t)(value % (range + 1));
}
return lb + (intmax_t)(value % (range + 1));