mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
add warnings to std/sysrand (#17191)
* remove unnecessary when statement * remove outdated codes * add warnings to std/sysrand * Update lib/std/sysrand.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
## .. warning:: This module was added in Nim 1.6. If you are using it for cryptographic purposes,
|
||||
## keep in mind that so far this has not been audited by any security professionals,
|
||||
## therefore may not be secure.
|
||||
##
|
||||
## `std/sysrand` generates random numbers from a secure source provided by the operating system.
|
||||
## It is also called Cryptographically secure pseudorandom number generator.
|
||||
## It should be unpredictable enough for cryptographic applications,
|
||||
|
||||
Reference in New Issue
Block a user