summaryrefslogtreecommitdiff
path: root/rdrand.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-06-14 20:50:39 -0400
committerJeffrey Walton <noloader@gmail.com>2016-06-14 20:50:39 -0400
commit2efe26a418bc89e2cff09b113628cd26d3753e09 (patch)
treecef6a31eecd5bc8f01b090ca1f13d536208a1134 /rdrand.h
parentc1f025343a1cfd4d2acb7e1eeb83eea935a7a4cf (diff)
downloadcryptopp-git-2efe26a418bc89e2cff09b113628cd26d3753e09.tar.gz
Update comment. Whitespace cleanup
Diffstat (limited to 'rdrand.h')
-rw-r--r--rdrand.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/rdrand.h b/rdrand.h
index 2e613618..2729ed7f 100644
--- a/rdrand.h
+++ b/rdrand.h
@@ -37,7 +37,7 @@ class RDRAND : public RandomNumberGenerator
{
public:
std::string AlgorithmName() const {return "RDRAND";}
-
+
//! \brief Construct a RDRAND generator
//! \param retries the number of retries for failed calls to the hardware
//! \details RDRAND() constructs a generator with a maximum number of retires
@@ -46,16 +46,16 @@ public:
//! to fulfill requests at about 6 to 8 times the rate of RDRAND. The default
//! retries reflects the difference.
RDRAND(unsigned int retries = 12) : m_retries(retries) {}
-
+
virtual ~RDRAND() {}
-
+
//! \brief Retrieve the number of retries used by the generator
//! \returns the number of times GenerateBlock() will attempt to recover from a failed generation
unsigned int GetRetries() const
{
return m_retries;
}
-
+
//! \brief Set the number of retries used by the generator
//! \param retries number of times GenerateBlock() will attempt to recover from a failed generation
void SetRetries(unsigned int retries)
@@ -119,7 +119,7 @@ class RDSEED : public RandomNumberGenerator
{
public:
std::string AlgorithmName() const {return "RDSEED";}
-
+
//! \brief Construct a RDSEED generator
//! \param retries the number of retries for failed calls to the hardware
//! \details RDSEED() constructs a generator with a maximum number of retires
@@ -128,16 +128,16 @@ public:
//! to fulfill requests at about 6 to 8 times the rate of RDRAND. The default
//! retries reflects the difference.
RDSEED(unsigned int retries = 64) : m_retries(retries) {}
-
+
virtual ~RDSEED() {}
-
+
//! \brief Retrieve the number of retries used by the generator
//! \returns the number of times GenerateBlock() will attempt to recover from a failed generation
unsigned int GetRetries() const
{
return m_retries;
}
-
+
//! \brief Set the number of retries used by the generator
//! \param retries number of times GenerateBlock() will attempt to recover from a failed generation
void SetRetries(unsigned int retries)