]> gitweb.factorcode.org Git - factor.git/commitdiff
use iota in crypto.xor
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 7 Oct 2009 01:29:43 +0000 (20:29 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 7 Oct 2009 01:29:43 +0000 (20:29 -0500)
extra/crypto/xor/xor.factor

index 662881f8cc4dc61a511d02067d6e16f64566ba07..45bbe55d6eb2deb34ecbac8437241ec6cdec9e12 100644 (file)
@@ -9,4 +9,4 @@ ERROR: empty-xor-key ;
 
 : xor-crypt ( seq key -- seq' )
     [ empty-xor-key ] when-empty
-    [ dup length ] dip '[ _ mod-nth bitxor ] 2map ;
+    [ dup length iota ] dip '[ _ mod-nth bitxor ] 2map ;