]> gitweb.factorcode.org Git - factor.git/commitdiff
random-bytes: fix docs, aligning with random-bytes*
authorRobert Vollmert <rob@vllmrt.net>
Wed, 6 Sep 2017 15:36:54 +0000 (17:36 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 11 Sep 2017 22:44:36 +0000 (15:44 -0700)
basis/random/random-docs.factor

index 8d182964b0af1eccf208eea1418671f60421b258..d716fe1eff137737a00f8028b8ca5d7dd33e7717 100644 (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 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 ."