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/simplewallet/simplewallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simplewallet') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index ff60ea38e..585af35ea 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1784,7 +1784,7 @@ bool simple_wallet::print_integrated_address(const std::vector &arg } if (args.size() == 0) { - crypto::generate_random_bytes(8, payment_id.data); + payment_id = crypto::rand(); success_msg_writer() << tr("Random payment ID: ") << payment_id; success_msg_writer() << tr("Matching integrated address: ") << m_wallet->get_account().get_public_integrated_address_str(payment_id, m_wallet->testnet()); return true; -- cgit v1.2.3