Dogecoin Core  1.14.2
P2P Digital Currency
Classes | Functions
random.h File Reference
#include "uint256.h"
#include <stdint.h>
Include dependency graph for random.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FastRandomContext
 Fast randomness source. More...
 

Functions

void RandAddSeed ()
 
void GetRandBytes (unsigned char *buf, int num)
 Functions to gather random data via the OpenSSL PRNG. More...
 
uint64_t GetRand (uint64_t nMax)
 
int GetRandInt (int nMax)
 
uint256 GetRandHash ()
 
void GetStrongRandBytes (unsigned char *buf, int num)
 Function to gather random data from multiple sources, failing whenever any of those source fail to provide a result. More...
 

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 *  buf,
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: