Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cRandomCombo Class Reference

#include <cRandomCombo.h>

Inheritance diagram for GrayLib::cRandomCombo:
Gray::IRandomNoise GraySSL::cRandomTestHash

Public Types

typedef BYTE SOURCE_t
 

Public Member Functions

 cRandomCombo () noexcept
 
virtual ~cRandomCombo ()
 
HRESULT AddRandomSource (IRandomNoise *pRandom, size_t nSizeMax)
 
 UNITTEST2_PREDEF (cRandomCombo)
 
- Public Member Functions inherited from Gray::IRandomNoise
virtual HRESULT GetNoise (void *pData, size_t iSize)=0
 fill array with random bytes. return # bytes filled. More...
 

Public Attributes

SOURCE_t m_nSourceQty
 
cRandomComboSource m_source [k_nMaxSources]
 

Static Public Attributes

static const SOURCE_t k_nMaxSources = 8
 

Detailed Description

Combine multiple IRandomNoise sources. an array of entropy sources

Member Typedef Documentation

◆ SOURCE_t

Constructor & Destructor Documentation

◆ cRandomCombo()

GrayLib::cRandomCombo::cRandomCombo ( )
inlinenoexcept

◆ ~cRandomCombo()

virtual GrayLib::cRandomCombo::~cRandomCombo ( )
inlinevirtual

Member Function Documentation

◆ AddRandomSource()

HRESULT GrayLib::cRandomCombo::AddRandomSource ( IRandomNoise pRandom,
size_t  nSizeMax 
)

Adds an entropy source to our poll set

  • pRandom = Function data
  • nSizeMax = Minimum required from source before entropy is released
    Returns
    0 if successful or TYPE_E_OUTOFBOUNDS

◆ UNITTEST2_PREDEF()

GrayLib::cRandomCombo::UNITTEST2_PREDEF ( cRandomCombo  )

Member Data Documentation

◆ k_nMaxSources

const SOURCE_t GrayLib::cRandomCombo::k_nMaxSources = 8
static

◆ m_nSourceQty

SOURCE_t GrayLib::cRandomCombo::m_nSourceQty

◆ m_source

cRandomComboSource GrayLib::cRandomCombo::m_source[k_nMaxSources]

The documentation for this class was generated from the following files: