From fec712491ec5a002cc46177fb7afe1d2412f0185 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 26 Jul 2017 22:33:37 -0400 Subject: [PATCH] Add /dev/random usage note on Linux --- osrng.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osrng.h b/osrng.h index 9e1934b0..555f1ba4 100644 --- a/osrng.h +++ b/osrng.h @@ -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 [RFC PATCH v12 3/4] Linux Random +//! Number Generator on the kernel-crypto mailing list. class CRYPTOPP_DLL BlockingRng : public RandomNumberGenerator { public: