AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
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 50 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 59 of file SecureRandom.h.

◆ ~SecureRandom()

template<typename DataType = uint64_t>
virtualdefault

Member Function Documentation

◆ operator bool()

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

Definition at line 89 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 69 of file SecureRandom.h.

◆ Reset()

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

Definition at line 64 of file SecureRandom.h.


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