|
|
rand(3) -- bad random number generator
|
|
These interfaces are obsoleted by random(3). The rand() function computes a sequence of pseudo-random integers in the range of 0 to RAND_MAX (as defined by the header file ). The srand() fun... |
|
rand48(3) -- pseudo-random number generators and initialization routines
|
|
The rand48() family of functions generates pseudo-random numbers using a linear congruential algorithm working on integers 48 bits in size. The particular formula employed is r(n+1) = (a * r(n) + c) m... |
|
random(3) -- better random number generator; routines for changing generators
|
|
The random() function uses a non-linear additive feedback random number generator employing a default table of size 31 long integers to return successive pseudo-random numbers in the range from 0 to (... |
|
RAND_add(3) -- add entropy to the PRNG
|
|
RAND_add() mixes the num bytes at buf into the PRNG state. Thus, if the data at buf are unpredictable to an adversary, this increases the uncertainty about the state and makes the PRNG output less pre... |
|
RAND_bytes(3) -- generate random data
|
|
RAND_bytes() puts num cryptographically strong pseudo-random bytes into buf. An error occurs if the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence. RAND_pseud... |
|
RAND_cleanup(3) -- erase the PRNG state
|
|
RAND_cleanup() erases the memory used by the PRNG. |
|
RAND_egd(3) -- query entropy gathering daemon
|
|
RAND_egd() queries the entropy gathering daemon EGD on socket path. It queries 255 bytes and uses RAND_add(3) to seed the OpenSSL built-in PRNG. RAND_egd(path) is a wrapper for RAND_egd_bytes(path, 25... |
|
RAND_egd_bytes(3) -- query entropy gathering daemon
|
|
RAND_egd() queries the entropy gathering daemon EGD on socket path. It queries 255 bytes and uses RAND_add(3) to seed the OpenSSL built-in PRNG. RAND_egd(path) is a wrapper for RAND_egd_bytes(path, 25... |
|
RAND_event(3) -- add entropy to the PRNG
|
|
RAND_add() mixes the num bytes at buf into the PRNG state. Thus, if the data at buf are unpredictable to an adversary, this increases the uncertainty about the state and makes the PRNG output less pre... |
|
RAND_file_name(3) -- PRNG seed file
|
|
RAND_file_name() generates a default path for the random seed file. buf points to a buffer of size num in which to store the filename. The seed file is $RANDFILE if that environment variable is set, $... |
|
RAND_get_rand_method(3) -- select RAND method
|
|
A RAND_METHOD specifies the functions that OpenSSL uses for random number generation. By modifying the method, alternative implementations such as hardware RNGs may be used. IMPORTANT: See the NOTES s... |
|
RAND_load_file(3) -- PRNG seed file
|
|
RAND_file_name() generates a default path for the random seed file. buf points to a buffer of size num in which to store the filename. The seed file is $RANDFILE if that environment variable is set, $... |
|
RAND_pseudo_bytes(3) -- generate random data
|
|
RAND_bytes() puts num cryptographically strong pseudo-random bytes into buf. An error occurs if the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence. RAND_pseud... |