From eca854041f86f2171e37ab876bf108d9e13b8188 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 27 Nov 2020 12:44:45 +0900 Subject: [DOC] Mersenne Twister isn't cryptographically secure [ci skip] --- random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'random.c') 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 -- cgit v1.2.3