MagickCore 7.0.10
random_.h File Reference
#include "wizard/hmac.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.

Typedefs

typedef struct _RandomInfo RandomInfo
 

Functions

WizardExport double GetPseudoRandomValue (RandomInfo *)
 
WizardExport double GetRandomValue (RandomInfo *)
 
WizardExport RandomInfoAcquireRandomInfo (const HashType)
 
WizardExport RandomInfoDestroyRandomInfo (RandomInfo *)
 
WizardExport StringInfoGetRandomKey (RandomInfo *, const size_t)
 
WizardExport unsigned long GetRandomSecretKey (const RandomInfo *)
 
WizardExport void RandomComponentTerminus (void)
 
WizardExport void SetRandomKey (RandomInfo *, const size_t, unsigned char *)
 
WizardExport void SetRandomSecretKey (const unsigned long)
 
WizardExport void SetRandomTrueRandom (const WizardBooleanType)
 
WizardExport WizardBooleanType RandomComponentGenesis (void)
 

Typedef Documentation

◆ RandomInfo

typedef struct _RandomInfo RandomInfo

Definition at line 31 of file random_.h.

Function Documentation

◆ AcquireRandomInfo()

WizardExport RandomInfo * AcquireRandomInfo ( const HashType  )

◆ DestroyRandomInfo()

◆ GetPseudoRandomValue()

WizardExport double GetPseudoRandomValue ( RandomInfo )

◆ GetRandomKey()

◆ GetRandomSecretKey()

WizardExport unsigned long GetRandomSecretKey ( const RandomInfo random_info)

Definition at line 853 of file random.c.

References random_info, and _RandomInfo::secret_key.

◆ GetRandomValue()

WizardExport double GetRandomValue ( RandomInfo random_info)

Definition at line 878 of file random.c.

References random_info, and SetRandomKey().

◆ RandomComponentGenesis()

WizardExport WizardBooleanType RandomComponentGenesis ( void  )

Definition at line 910 of file random.c.

References AcquireSemaphoreInfo(), random_semaphore, and WizardTrue.

Referenced by WizardsToolkitGenesis().

◆ RandomComponentTerminus()

WizardExport void RandomComponentTerminus ( void  )

◆ SetRandomKey()

WizardExport void SetRandomKey ( RandomInfo ,
const size_t  ,
unsigned char *   
)

◆ SetRandomSecretKey()

WizardExport void SetRandomSecretKey ( const unsigned long  )

◆ SetRandomTrueRandom()

WizardExport void SetRandomTrueRandom ( const WizardBooleanType  true_random)

Definition at line 1174 of file random.c.

References gather_true_random.