Dogecoin Core
1.14.2
P2P Digital Currency
|
#include "random.h"
#include "crypto/sha512.h"
#include "support/cleanse.h"
#include "util.h"
#include "utilstrencodings.h"
#include <stdlib.h>
#include <limits>
#include <sys/time.h>
#include <openssl/err.h>
#include <openssl/rand.h>
Go to the source code of this file.
Functions | |
void | RandAddSeed () |
void | GetRandBytes (unsigned char *buf, int num) |
Functions to gather random data via the OpenSSL PRNG. More... | |
void | GetStrongRandBytes (unsigned char *out, int num) |
Function to gather random data from multiple sources, failing whenever any of those source fail to provide a result. More... | |
uint64_t | GetRand (uint64_t nMax) |
int | GetRandInt (int nMax) |
uint256 | GetRandHash () |
uint64_t GetRand | ( | uint64_t | nMax | ) |
Definition at line 153 of file random.cpp.
void GetRandBytes | ( | unsigned char * | buf, |
int | num | ||
) |
Functions to gather random data via the OpenSSL PRNG.
Definition at line 125 of file random.cpp.
uint256 GetRandHash | ( | ) |
Definition at line 173 of file random.cpp.
int GetRandInt | ( | int | nMax | ) |
Definition at line 168 of file random.cpp.
void GetStrongRandBytes | ( | unsigned char * | out, |
int | num | ||
) |
Function to gather random data from multiple sources, failing whenever any of those source fail to provide a result.
Definition at line 132 of file random.cpp.
void RandAddSeed | ( | ) |