Changeset View
Changeset View
Standalone View
Standalone View
src/random.h
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
void GetOSRand(uint8_t *ent32); | void GetOSRand(uint8_t *ent32); | ||||
/** | /** | ||||
* Check that OS randomness is available and returning the requested number of | * Check that OS randomness is available and returning the requested number of | ||||
* bytes. | * bytes. | ||||
*/ | */ | ||||
bool Random_SanityCheck(); | bool Random_SanityCheck(); | ||||
/** Initialize the RNG. */ | /** | ||||
* Initialize global RNG state and log any CPU features that are used. | |||||
* | |||||
* Calling this function is optional. RNG state will be initialized when first | |||||
* needed if it is not called. | |||||
*/ | |||||
void RandomInit(); | void RandomInit(); | ||||
#endif // BITCOIN_RANDOM_H | #endif // BITCOIN_RANDOM_H |