aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 12:44:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 12:47:31 +0900
commiteca854041f86f2171e37ab876bf108d9e13b8188 (patch)
treeb53b3374132e538187f06467984c0458793ec59d /random.c
parentead32e6e6496fa340e38ecaf62e868f37d344968 (diff)
downloadruby-eca854041f86f2171e37ab876bf108d9e13b8188.tar.gz
[DOC] Mersenne Twister isn't cryptographically secure [ci skip]
Diffstat (limited to 'random.c')
-rw-r--r--random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/random.c b/random.c
index 1dd4ccd20f..d9a347e426 100644
--- a/random.c
+++ b/random.c
@@ -1672,7 +1672,8 @@ rb_reset_random_seed(void)
* marshaled, allowing sequences to be saved and resumed.
*
* PRNGs are currently implemented as a modified Mersenne Twister with a period
- * of 2**19937-1.
+ * of 2**19937-1. As this algorithm is _not_ for cryptographical use, you must
+ * use SecureRandom for security purpose, instead of this PRNG.
*/
void