mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
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.
This commit is contained in:
parent
1cf22b27a6
commit
aeaa44fe86
@ -124,9 +124,9 @@ bool load_checkpoints_from_dns(cryptonote::checkpoints& checkpoints)
|
|||||||
std::random_device rd;
|
std::random_device rd;
|
||||||
std::mt19937 gen(rd());
|
std::mt19937 gen(rd());
|
||||||
std::uniform_int_distribution<int> dis(0, dns_urls.size() - 1);
|
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
|
do
|
||||||
{
|
{
|
||||||
records = tools::DNSResolver::instance().get_txt_record(dns_urls[cur_index], avail, valid);
|
records = tools::DNSResolver::instance().get_txt_record(dns_urls[cur_index], avail, valid);
|
||||||
|
Loading…
Reference in New Issue
Block a user