mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Automatically initialize RNG on first use.
This commit is contained in:
@@ -178,7 +178,12 @@ void GetOSRand(unsigned char *ent32);
|
||||
*/
|
||||
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();
|
||||
|
||||
#endif // BITCOIN_RANDOM_H
|
||||
|
||||
Reference in New Issue
Block a user