X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=e2sm%2Flib%2Fasn_random_fill.c;h=819cf700ecc63254d2063af92e5a071d860899f8;hb=refs%2Fchanges%2F61%2F8461%2F1;hp=2e3e892c103ce9c761fe68c19075995333ddadf1;hpb=a68d14ca01424a51cc7c9dd24b46282784301cba;p=ric-app%2Frc.git diff --git a/e2sm/lib/asn_random_fill.c b/e2sm/lib/asn_random_fill.c index 2e3e892..819cf70 100644 --- 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; -#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));