use iota in crypto.xor

Doug Coleman 2009-10-06 20:29:43 -05:00
parent a69f142534
commit f050215cbd
1 changed files with 1 additions and 1 deletions

View 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 ;