wallet: use mutex protected random generation api

This commit is contained in:
moneromooo-monero 2015-08-26 08:28:58 +01:00
parent 96104ff2b5
commit 5dc53c2cb0
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ namespace tools
crypto::hash8 payment_id;
if (req.payment_id.empty())
{
crypto::generate_random_bytes(8, payment_id.data);
payment_id = crypto::rand<crypto::hash8>();
}
else
{