diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-10-02 19:12:12 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2014-10-02 19:12:12 -0400 |
commit | aeaa44fe860fcbe9586d48bfbd55cc6a167d8e33 (patch) | |
tree | 219d1f95cf9e2e365db3ae13fc350154cabb8b60 /src/cryptonote_core/checkpoints_create.cpp | |
parent | Merge pull request #165 (diff) | |
download | monero-aeaa44fe860fcbe9586d48bfbd55cc6a167d8e33.tar.xz |
fixed signed-unsigned issue from 166
Loss of entropy can be discussed at a later time, but is
not deemed a significant issue for now.
Diffstat (limited to 'src/cryptonote_core/checkpoints_create.cpp')
-rw-r--r-- | src/cryptonote_core/checkpoints_create.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/checkpoints_create.cpp b/src/cryptonote_core/checkpoints_create.cpp index 808bc46a7..c0c5887c5 100644 --- a/src/cryptonote_core/checkpoints_create.cpp +++ b/src/cryptonote_core/checkpoints_create.cpp @@ -124,9 +124,9 @@ bool load_checkpoints_from_dns(cryptonote::checkpoints& checkpoints) std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<int> dis(0, dns_urls.size() - 1); - int first_index = dis(gen); + size_t first_index = dis(gen); - int cur_index = first_index; + size_t cur_index = first_index; do { records = tools::DNSResolver::instance().get_txt_record(dns_urls[cur_index], avail, valid); |