many improvements to random.nim; fixes #4726

This commit is contained in:
Araq 2017-12-14 21:37:53 +01:00
commit 196977f623
2 changed files with 102 additions and 27 deletions

View file

@ -128,3 +128,7 @@ This now needs to be written as:
strings and chars.
- Removed ``securehash`` stdlib module as it is not secure anymore. The module
is still available via ``compiler/securehash``.
- The ``random`` procs in ``random.nim`` have all been deprecated. Instead use
the new ``rand`` procs. The module now exports the state of the random
number generator as type ``Rand`` so multiple threads can easily use their
own random number generators that do not require locking.