random-bytes: fix docs, aligning with random-bytes*

factor-shell
Robert Vollmert 2017-09-06 17:36:54 +02:00 committed by John Benediktsson
parent 504c9959a1
commit 8ab4e94475
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ HELP: random-32*
HELP: random-bytes*
{ $values { "n" integer } { "obj" "a random number generator" } { "byte-array" "a sequence of random bytes" } }
{ $description "Generates a byte-array of random bytes." } ;
{ $description "Generates a byte-array of n random bytes." } ;
HELP: random
{ $values { "obj" object } { "elt" "a random element" } }
@ -37,8 +37,8 @@ HELP: random-32
{ $description "Outputs 32 random bits. This word is more efficient than calling " { $link random } " because no scaling is done on the output." } ;
HELP: random-bytes
{ $values { "n" integer } { "byte-array" "a random integer" } }
{ $description "Outputs an integer with n bytes worth of bits." }
{ $values { "n" integer } { "byte-array" "a sequence of random bytes" } }
{ $description "Generates a byte-array of n random bytes." }
{ $examples
{ $unchecked-example "USING: prettyprint random ;"
"5 random-bytes ."