blockchain: remove obsolete call to libc srand

crypto::rand is now used for output selection
This commit is contained in:
moneromooo-monero 2015-08-24 21:57:48 +01:00
parent 96104ff2b5
commit 813e758b62
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -1416,7 +1416,6 @@ void Blockchain::add_out_to_get_random_outs(COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_A
bool Blockchain::get_random_outs_for_amounts(const COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::request& req, COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::response& res) const
{
LOG_PRINT_L3("Blockchain::" << __func__);
srand(static_cast<unsigned int>(time(NULL)));
CRITICAL_REGION_LOCAL(m_blockchain_lock);
// for each amount that we need to get mixins for, get <n> random outputs