diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-11-22 19:17:15 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-11-22 19:17:15 -0500 |
commit | 298988a5b9687f64de733ce01319e90e94b0b688 (patch) | |
tree | 8b026ad4838457e3e5385ff91380ead4499d30f5 /rng.h | |
parent | 62618fda97bbde6d4cc4752101e69839fc4f3b6f (diff) | |
download | cryptopp-git-298988a5b9687f64de733ce01319e90e94b0b688.tar.gz |
Crypto++ 5.6.3 check-inCRYPTOPP_5_6_3
Diffstat (limited to 'rng.h')
-rw-r--r-- | rng.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) {}
|