]> gitweb.factorcode.org Git - factor.git/commitdiff
random.windows: reduce verbosity of windows-crypto-context random-bytes*
authorAlexander Iljin <ajsoft@yandex.ru>
Thu, 16 Mar 2017 08:42:31 +0000 (11:42 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 22 Jan 2018 15:58:17 +0000 (07:58 -0800)
basis/random/windows/windows.factor

index af02540ba0671a5d0464fe620b68c396753f3862..c2acd47ddd944a7ca472eccf38fdbd915d0b9346 100755 (executable)
@@ -46,7 +46,7 @@ ERROR: acquire-crypto-context-failed provider type error ;
         initialize-crypto-context ; inline
 
 M: windows-crypto-context random-bytes* ( n windows-crypto-context -- bytes )
-    handle>> swap [ ] [ <byte-array> ] bi
+    handle>> swap dup <byte-array>
     [ CryptGenRandom win32-error=0/f ] keep ;
 
 ! Some Windows installations still don't work, so just set