From 18bed2c174362f76ddedf68bb700e8b2c817fcb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2020 14:09:59 +0200 Subject: Complete NetBSD compatibility --- libbutl/uuid-freebsd.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libbutl/uuid-freebsd.cxx') diff --git a/libbutl/uuid-freebsd.cxx b/libbutl/uuid-freebsd.cxx index 567c241..daf680b 100644 --- a/libbutl/uuid-freebsd.cxx +++ b/libbutl/uuid-freebsd.cxx @@ -31,7 +31,7 @@ namespace butl // // Specifically (and as of FreeBSD 11.2), we get a version 1 (MAC/time- // based) UUID and it seems there is provision for getting the time in a - // collision-safe: + // collision-safe manner: // // "According to the algorithm of generating time-based UUIDs, this will // also force a new random clock sequence, thereby increasing the @@ -43,6 +43,14 @@ namespace butl // smart enough not to start return random UUIDs without a good source of // randomness, at least not by default. // + // When it comes to NetBSD, there is this HISTORY note in the uuidgen(2) + // man page: + // + // "It was changed to use version 4 UUIDs, i.e. randomly generated UUIDs, + // in NetBSD 8.0." + // + // And we will assume random NetBSD UUIDs are strong. + // struct ::uuid d; if (uuidgen (&d, 1) != 0) -- cgit v1.1