note about std::random_device

This commit is contained in:
Marius Bancila 2021-12-22 23:34:09 +02:00
parent 50482c3c07
commit 9857cd372a

View File

@ -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.