Home
last modified time | relevance | path

Searched refs:randnum (Results 1 – 7 of 7) sorted by relevance

/external/python/rsa/tests/
Dtest_prime.py23 import rsa.randnum
59 orig_randint = rsa.randnum.randint
60 rsa.randnum.randint = fake_randint
77 rsa.randnum.randint = orig_randint
/external/ltp/lib/
Drandom_range.c351 long randnum; in random_range() local
352 randnum = divider(min, max, 0, -1); in random_range()
353 return (long)(min + ((randnum % nmults) * mult)); in random_range()
438 long randnum; in random_rangel() local
439 randnum = divider(min, max, 0, -1); in random_rangel()
440 return (long)(min + ((randnum % nmults) * mult)); in random_rangel()
455 long long randnum; in random_rangell() local
526 randnum = divider(min, max, 0, -1); in random_rangell()
527 return (long long)(min + ((randnum % nmults) * mult)); in random_rangell()
/external/python/rsa/rsa/
Dprime.py25 import rsa.randnum
100 a = rsa.randnum.randint(n - 3) + 1
166 integer = rsa.randnum.read_random_odd_int(nbits)
Dparallel.py33 import rsa.randnum
38 integer = rsa.randnum.read_random_odd_int(nbits)
Dkey.py43 import rsa.randnum
430 blind_r = rsa.randnum.randint(self.n - 1)
446 blind_r = rsa.randnum.randint(self.n - 1)
/external/toybox/toys/pending/
Ddhcp.c568 uint32_t randnum; in getxid() local
572 xreadall(fd, &randnum, sizeof(randnum)); in getxid()
574 return randnum; in getxid()
/external/python/rsa/doc/
Dusage.rst248 >>> import rsa.randnum
249 >>> aes_key = rsa.randnum.read_random_bits(128)