summaryrefslogtreecommitdiff
path: root/rng.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-11-22 19:17:15 -0500
committerJeffrey Walton <noloader@gmail.com>2015-11-22 19:17:15 -0500
commit298988a5b9687f64de733ce01319e90e94b0b688 (patch)
tree8b026ad4838457e3e5385ff91380ead4499d30f5 /rng.h
parent62618fda97bbde6d4cc4752101e69839fc4f3b6f (diff)
downloadcryptopp-git-298988a5b9687f64de733ce01319e90e94b0b688.tar.gz
Crypto++ 5.6.3 check-inCRYPTOPP_5_6_3
Diffstat (limited to 'rng.h')
-rw-r--r--rng.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/rng.h b/rng.h
index 71ec4187..ed1177c5 100644
--- a/rng.h
+++ b/rng.h
@@ -16,10 +16,14 @@
NAMESPACE_BEGIN(CryptoPP)
//! \brief Linear Congruential Generator (LCG)
-//! \details Originally by William S. England, do not use for cryptographic purposes
+//! \details Originally propsed by William S. England.
+//! \warning LC_RNG is suitable for simulations, where uniformaly distrubuted numbers are
+//! required quickly. It should not be used for cryptographic purposes.
class LC_RNG : public RandomNumberGenerator
{
public:
+ //! \brief Construct a Linear Congruential Generator (LCG)
+ //! \param init_seed the initial value for the generator
LC_RNG(word32 init_seed)
: seed(init_seed) {}