|Classes of Scott Arciszewski||>||random_compat||>||RATIONALE.md||>||Download|
Rationale (Design Decisions)
Reasoning Behind the Order of Preferred Random Data Sources
The order is:
If libsodium is available, we get random data from it. This is the preferred method on all OSes, but libsodium is not very widely installed, so other fallbacks are available.
Next, we read
Despite strongly urging people not to use mcrypt in their projects
(because libmcrypt is abandonware and the API puts too much responsibility on the
implementor) we prioritize
The reason is simple:
* On Unix-based operating systems, it reads from
If we're on Windows and don't have access to
As of random_compat 2.0, we no longer fall through to OpenSSL.