Page MenuHomePhabricator

dnsseeds.cpp
No OneTemporary

dnsseeds.cpp

// Copyright (c) 2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <dnsseeds.h>
#include <random.h>
#include <util/system.h>
const std::vector<std::string>
GetRandomizedDNSSeeds(const CChainParams &params) {
FastRandomContext rng;
std::vector<std::string> seeds;
if (gArgs.IsArgSet("-overridednsseed")) {
seeds = {gArgs.GetArg("-overridednsseed", "")};
} else {
seeds = params.vSeeds;
}
Shuffle(seeds.begin(), seeds.end(), rng);
return seeds;
}

File Metadata

Mime Type
text/x-c
Expires
Mon, Nov 25, 08:00 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4512453
Default Alt Text
dnsseeds.cpp (619 B)

Event Timeline