diff options
author | Eion Robb <eion@robbmob.com> | 2015-10-22 11:32:27 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2015-10-22 11:32:27 +0300 |
commit | a8db9919da2f5a2fd88cf6d12a0d0ab4ad0ef526 (patch) | |
tree | d6931b899a265dc5a7595a16f6f2d109848266d0 /mtproto-utils.c | |
parent | 5b725d288f59ada3f8905a73182fe57ae8c22986 (diff) |
Allow compiling on Windows
Diffstat (limited to 'mtproto-utils.c')
-rw-r--r-- | mtproto-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mtproto-utils.c b/mtproto-utils.c index 8e8a256..1f3a8d4 100644 --- a/mtproto-utils.c +++ b/mtproto-utils.c @@ -125,8 +125,8 @@ int bn_factorize (TGLC_bn *pq, TGLC_bn *p, TGLC_bn *q) { unsigned long long g = 0; int i; for (i = 0; i < 3 || it < 1000; i++) { - int q = ((lrand48() & 15) + 17) % what; - unsigned long long x = (long long)lrand48 () % (what - 1) + 1, y = x; + int q = ((rand() & 15) + 17) % what; + unsigned long long x = (long long)rand () % (what - 1) + 1, y = x; int lim = 1 << (i + 18); int j; for (j = 1; j < lim; j++) { |