// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_RANDOM_H #define BITCOIN_RANDOM_H #include class uint256; /** * Seed OpenSSL PRNG with additional entropy data */ void RandAddSeed(); void RandAddSeedPerfmon(); /** * Functions to gather random data via the OpenSSL PRNG */ void GetRandBytes(unsigned char *buf, int num); uint64_t GetRand(uint64_t nMax); int GetRandInt(int nMax); uint256 GetRandHash(); #endif // BITCOIN_RANDOM_H