From 9857cd372a7d96d5b23393de39c6081b3fa1e86e Mon Sep 17 00:00:00 2001 From: Marius Bancila Date: Wed, 22 Dec 2021 23:34:09 +0200 Subject: [PATCH] note about std::random_device --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1bb2ace..647549a 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,10 @@ The following is a list of examples for using the library: assert(h1(str) == h2(id)); ``` +If you generate uuids using the `basic_uuid_random_generator` and [std::random_device](https://en.cppreference.com/w/cpp/numeric/random/random_device) to seed a generator, keep in mind that this might not be non-deterministic and actually generate the same sequence of numbers: + +> std::random_device may be implemented in terms of an implementation-defined pseudo-random number engine if a non-deterministic source (e.g. a hardware device) is not available to the implementation. In this case each std::random_device object may generate the same number sequence. + ## Support The library is supported on all major operating systems: Windows, Linux and Mac OS.