Skip to content

Commit 6d50832

Browse files
committed
Merge branch 'master' of github.com:dreibh/subnetcalc
2 parents 10a8ae5 + d2712aa commit 6d50832

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/subnetcalc.1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.\" Contact: [email protected]
1818
.\"
1919
.\" ###### Setup ############################################################
20-
.Dd October 19, 2024
20+
.Dd October 23, 2024
2121
.Dt subnetcalc 1
2222
.Os subnetcalc
2323
.\" ###### Name #############################################################
@@ -48,9 +48,9 @@ The netmask or prefix length (0-32 for IPv4; 0-128 for IPv6).
4848
.It Fl n
4949
Skip trying a reverse DNS lookup.
5050
.It Fl uniquelocal
51-
Given an IPv6 address, the first 48 bits of the address are replaced by a randomly chosen IPv6 Unique Local prefix in fc00::/7 (see also RFC 4193). Under Linux, /dev/urandom is used for random number generation.
51+
Given an IPv6 address, the first 48 bits of the address are replaced by a randomly chosen IPv6 Unique Local prefix in fc00::/7 (see also RFC 4193). Under Linux and FreeBSD, /dev/urandom is used for random number generation.
5252
.It Fl uniquelocalhq
53-
Like \-uniquelocal, but using /dev/random instead on Linux systems for highest-quality random number generation. On other systems, this option is equal to \-uniquelocal. Note, that reading from /dev/random may take some time. You can speed up this process by delivering random input e.g. by pressing keys or moving the mouse.
53+
Like \-uniquelocal, but using /dev/random instead on Linux and FreeBSD systems for highest-quality random number generation. On other systems, this option is equal to \-uniquelocal. Note, that reading from /dev/random may take some time. You can speed up this process by delivering random input e.g. by pressing keys or moving the mouse.
5454
.It Fl nocolour | Fl nocolor
5555
Turns colourised output off.
5656
.El

src/subnetcalc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void generateUniqueLocal(sockaddr_union& address,
145145
exit(1);
146146
}
147147

148-
#if defined(__LINUX__) || defined(__linux__) || defined(__linux)
148+
#if defined(__LINUX__) || defined(__linux__) || defined(__linux) || defined(__FreeBSD__)
149149
// ====== Read random number from random device ==========================
150150
const char* randomFile = (highQualityRng == true) ? "/dev/random" : "/dev/urandom";
151151
FILE* fh = fopen(randomFile, "r");

0 commit comments

Comments
 (0)