AWS SDK for C++  1.9.103
AWS SDK for C++
Public Member Functions | List of all members
Aws::Utils::Crypto::SecureRandom< DataType > Class Template Reference

#include <SecureRandom.h>

Public Member Functions

 SecureRandom (const std::shared_ptr< SecureRandomBytes > &entropySource)
 
virtual ~SecureRandom ()=default
 
virtual void Reset ()
 
virtual DataType operator() ()
 
 operator bool () const
 

Detailed Description

template<typename DataType = uint64_t>
class Aws::Utils::Crypto::SecureRandom< DataType >

Random Number generator for integral types. Guaranteed to have entropy or your program will crash.

Definition at line 47 of file SecureRandom.h.

Constructor & Destructor Documentation

◆ SecureRandom()

template<typename DataType = uint64_t>
Aws::Utils::Crypto::SecureRandom< DataType >::SecureRandom ( const std::shared_ptr< SecureRandomBytes > &  entropySource)
inline

Initialize with the results of CreateSecureRandomBytesImplementation(). An instance is not guaranteed to be thread safe. This is intentional, that is needless overhead to pay for something you probably don't need. If you encounter a need for thread safety, you are responsible for memory fencing.

Definition at line 56 of file SecureRandom.h.

◆ ~SecureRandom()

template<typename DataType = uint64_t>
virtual Aws::Utils::Crypto::SecureRandom< DataType >::~SecureRandom ( )
virtualdefault

Member Function Documentation

◆ operator bool()

template<typename DataType = uint64_t>
Aws::Utils::Crypto::SecureRandom< DataType >::operator bool ( ) const
inline

Definition at line 86 of file SecureRandom.h.

◆ operator()()

template<typename DataType = uint64_t>
virtual DataType Aws::Utils::Crypto::SecureRandom< DataType >::operator() ( )
inlinevirtual

Generate a random number of DataType

Definition at line 66 of file SecureRandom.h.

◆ Reset()

template<typename DataType = uint64_t>
virtual void Aws::Utils::Crypto::SecureRandom< DataType >::Reset ( )
inlinevirtual

Definition at line 61 of file SecureRandom.h.


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