mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[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:
parent
f07897fd7b
commit
381a373ab9
Notes:
git
2022-12-11 16:50:15 +00:00
2 changed files with 48 additions and 17 deletions
3
random.c
3
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue