/* * Random Number Generator * (C) 1999-2008 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include #include #include namespace Botan { RandomNumberGenerator* RandomNumberGenerator::make_rng() { std::unique_ptr h1(make_message_auth("HMAC(SHA-512)")); std::unique_ptr h2(h1->clone()); std::unique_ptr rng(new HMAC_RNG(h1.release(), h2.release())); rng->reseed(256); return rng.release(); } }