Dogecoin Core  1.14.2
P2P Digital Currency
Functions
random.cpp File Reference
#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>
Include dependency graph for random.cpp:

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 ()
 

Function Documentation

◆ GetRand()

uint64_t GetRand ( uint64_t  nMax)

Definition at line 153 of file random.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRandBytes()

void GetRandBytes ( unsigned char *  buf,
int  num 
)

Functions to gather random data via the OpenSSL PRNG.

Definition at line 125 of file random.cpp.

Here is the caller graph for this function:

◆ GetRandHash()

uint256 GetRandHash ( )

Definition at line 173 of file random.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRandInt()

int GetRandInt ( int  nMax)

Definition at line 168 of file random.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetStrongRandBytes()

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.

Here is the caller graph for this function:

◆ RandAddSeed()

void RandAddSeed ( )

Definition at line 46 of file random.cpp.

Here is the caller graph for this function: