Add /dev/random usage note on Linux

pull/450/head
Jeffrey Walton 2017-07-26 22:33:37 -04:00
parent 9242b7c918
commit fec712491e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ protected:
//! \class BlockingRng
//! \brief Wrapper class for /dev/random and /dev/srandom
//! \details Encapsulates /dev/random on Linux, OS X and Unix; and /dev/srandom on the BSDs.
//! \note On Linux the /dev/random interface is effectively deprecated. According to the
//! Kernel Crypto developers, /dev/urandom or getrandom(2) should be used instead. Also
//! see <A HREF="https://lkml.org/lkml/2017/7/20/993">[RFC PATCH v12 3/4] Linux Random
//! Number Generator</A> on the kernel-crypto mailing list.
class CRYPTOPP_DLL BlockingRng : public RandomNumberGenerator
{
public: