|
BigDigits
2.6.1
|
Interface for BigDigits "bd" random number functions using a "pretty-good" internal RNG. More...
Functions | |
| bdigit_t | bdRandDigit (void) |
| Generate a single random digit using internal RNG. More... | |
| size_t | bdRandomBits (BIGD a, size_t nbits) |
Generate a random BIGD number of bit length at most nbits using internal RNG. More... | |
| size_t | bdRandomNumber (BIGD a, BIGD n) |
| Generate a number at random from a uniform distribution in [0, n-1]. More... | |
| int | bdRandomOctets (unsigned char *bytes, size_t nbytes, const unsigned char *seed, size_t seedlen) |
| Generate array of random octets (bytes) using internal RNG. More... | |
Interface for BigDigits "bd" random number functions using a "pretty-good" internal RNG.
| bdigit_t bdRandDigit | ( | void | ) |
Generate a single random digit using internal RNG.
| size_t bdRandomBits | ( | BIGD | a, |
| size_t | nbits | ||
| ) |
Generate a random BIGD number of bit length at most nbits using internal RNG.
| [out] | a | to receive generated random number |
| [in] | nbits | maximum number of bits |
| size_t bdRandomNumber | ( | BIGD | a, |
| BIGD | n | ||
| ) |
Generate a number at random from a uniform distribution in [0, n-1].
| int bdRandomOctets | ( | unsigned char * | bytes, |
| size_t | nbytes, | ||
| const unsigned char * | seed, | ||
| size_t | seedlen | ||
| ) |
Generate array of random octets (bytes) using internal RNG.