aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-08-26 19:24:08 +0200
committerRiccardo Spagni <ric@spagni.net>2015-08-26 19:24:09 +0200
commita1af0feb06a392b3fa1ed4007ad2dca302b7a633 (patch)
tree0923b23d384a86feea4428e6d0049928db22a82c /src/simplewallet/simplewallet.cpp
parentMerge pull request #388 (diff)
parentwallet: use mutex protected random generation api (diff)
downloadmonero-a1af0feb06a392b3fa1ed4007ad2dca302b7a633.tar.xz
Merge pull request #390
5dc53c2 wallet: use mutex protected random generation api (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 9ff0fa264..fa41e1d42 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1828,7 +1828,7 @@ bool simple_wallet::print_integrated_address(const std::vector<std::string> &arg
}
if (args.size() == 0)
{
- crypto::generate_random_bytes(8, payment_id.data);
+ payment_id = crypto::rand<crypto::hash8>();
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;