MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / getRandomNBitInteger

Function getRandomNBitInteger

embedded/site-packages/Crypto/Util/number.py:96–110  ·  view source on GitHub ↗

Return a random number with exactly N-bits, i.e. a random number between 2**(N-1) and (2**N)-1. If :data:`randfunc` is omitted, then :meth:`Random.get_random_bytes` is used. .. deprecated:: 3.0 This function is for internal use only and may be renamed or removed in the

(N, randfunc=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

getPrimeFunction · 0.70
getStrongPrimeFunction · 0.70

Calls 2

getRandomIntegerFunction · 0.70
sizeFunction · 0.70

Tested by

no test coverage detected