From 5dc53c2cb0236b63cdbc7e77c4e6b5d992bc1b1b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 26 Aug 2015 08:28:58 +0100 Subject: wallet: use mutex protected random generation api --- src/wallet/wallet_rpc_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/wallet_rpc_server.cpp') diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index a3b468505..6c3cd2957 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -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(); } else { -- cgit v1.2.3