[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.
This commit is contained in:
zverok 2022-01-12 22:05:30 +02:00 committed by Victor Shepelev
parent f07897fd7b
commit 381a373ab9
Notes: git 2022-12-11 16:50:15 +00:00
2 changed files with 48 additions and 17 deletions

View file

@ -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