Skip to content

Commit 7b21119

Browse files
committed
Simplified #if block.
1 parent ca253e5 commit 7b21119

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/subnetcalc.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ void generateUniqueLocal(sockaddr_union& address,
165165
exit(1);
166166
}
167167

168-
#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)
168+
#if 1
169169
// ====== Read random number from random device ==========================
170-
const char* randomFile = highQualityRng ? "/dev/random" : "/dev/urandom";
171-
170+
const char* randomFile = highQualityRng ? "/dev/random" : "/dev/urandom";
172171
std::ifstream randomStream(randomFile, std::ios::binary);
173172
if(randomStream) {
174173
std::cout << format(gettext("Generating Unique Local IPv6 address (using %s) ..."),

0 commit comments

Comments
 (0)