diff options
Diffstat (limited to 'src/random.h')
-rw-r--r-- | src/random.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h index 664f030eba..0e8bb27176 100644 --- a/src/random.h +++ b/src/random.h @@ -46,4 +46,12 @@ public: uint32_t Rw; }; +/* Number of random bytes returned by GetOSRand */ +static const ssize_t NUM_OS_RANDOM_BYTES = 32; + +/** Get 32 bytes of system entropy. Do not use this in application code: use + * GetStrongRandBytes instead. + */ +void GetOSRand(unsigned char *ent32); + #endif // BITCOIN_RANDOM_H |