diff options
author | flywind <xzsflywind@gmail.com> | 2021-02-27 03:06:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 20:06:20 +0100 |
commit | 60ec3e2417a67e15aea9de3ae2c0ede59503b574 (patch) | |
tree | 1e2c1bca01d6500dd0d05b1850156d2b2fa64db3 /lib/std | |
parent | e9f12dd89e0b37eda11bf506415b6248aa967862 (diff) | |
download | Nim-60ec3e2417a67e15aea9de3ae2c0ede59503b574.tar.gz |
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>
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/sysrand.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/sysrand.nim b/lib/std/sysrand.nim index 5ccbd21be..603c132e8 100644 --- a/lib/std/sysrand.nim +++ b/lib/std/sysrand.nim @@ -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, |