mirror of
https://github.com/monero-project/monero.git
synced 2026-01-01 07:26:15 -08:00
wallet: use mutex protected random generation api
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user