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:
parent
e9f12dd89e
commit
60ec3e2417
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue