aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2022-01-12 22:05:30 +0200
committerVictor Shepelev <zverok.offline@gmail.com>2022-12-11 18:49:56 +0200
commit381a373ab92e2a5869e75f43815993cef39d32cf (patch)
treea8048b51e66ad0098f6bd741304faad21e514da6 /random.c
parentf07897fd7bb53a40a8fad5ee2be74e02b53e8614 (diff)
downloadruby-381a373ab92e2a5869e75f43815993cef39d32cf.tar.gz
[DOC] Improve Random::Formatter docs
* Make its usage more obvious (by providing more detailed examples); * Include mention of it into Random itself; * Small cleanups of docs.
Diffstat (limited to 'random.c')
-rw-r--r--random.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/random.c b/random.c
index 759e15335a..4b5b7ab6c4 100644
--- a/random.c
+++ b/random.c
@@ -1803,6 +1803,9 @@ rb_reset_random_seed(void)
* PRNGs are currently implemented as a modified Mersenne Twister with a period
* of 2**19937-1. As this algorithm is _not_ for cryptographical use, you must
* use SecureRandom for security purpose, instead of this PRNG.
+ *
+ * See also Random::Formatter module that adds convenience methods to generate
+ * various forms of random data.
*/
void