Botan
1.11.15
|
00001 /* 00002 * System RNG interface 00003 * (C) 2014 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_SYSTEM_RNG_H__ 00009 #define BOTAN_SYSTEM_RNG_H__ 00010 00011 #include <botan/rng.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * Return a shared reference to a global PRNG instance provided by the 00017 * operating system. For instance might be instantiated by /dev/urandom 00018 * or CryptGenRandom. 00019 */ 00020 BOTAN_DLL RandomNumberGenerator& system_rng(); 00021 00022 } 00023 00024 #endif