]> gitweb.factorcode.org Git - factor.git/commitdiff
random: no need to zero bytes in M\ object random-bytes*.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 11 Jul 2016 21:00:53 +0000 (14:00 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 11 Jul 2016 21:00:53 +0000 (14:00 -0700)
basis/random/random.factor

index 496c5d8fbf2a2d05bdeec7d49b7019a371948e37..d1ee076a1f7b3ecf4b60ee2188280b2329b12d8f 100644 (file)
@@ -19,7 +19,7 @@ GENERIC: random-32* ( obj -- n )
 GENERIC: random-bytes* ( n obj -- byte-array )
 
 M: object random-bytes*
-    [ integer>fixnum-strict [ <byte-array> ] keep ] dip
+    [ integer>fixnum-strict [ (byte-array) ] keep ] dip
     [ over 4 >= ] [
         [ 4 - ] dip
         [ random-32* 2over c:int c:set-alien-value ] keep