shortened

This commit is contained in:
Evan Duffield 2014-09-19 14:46:14 -07:00
parent 17f2146d7b
commit ed8a490835

View File

@ -85,9 +85,7 @@ void CDarkSendPool::SetNull(bool clearEverything){
// -- seed random number generator (used for ordering output lists)
unsigned int seed = 0;
unsigned char vs[32];
RAND_bytes(vs, 32);
std::memcpy(&seed, &vs, sizeof(seed));
RAND_bytes((unsigned char*)&seed, sizeof(seed));
std::srand(seed);
}