]> gitweb.factorcode.org Git - factor.git/commitdiff
fix rsa tests
authorDoug Coleman <erg@jobim.local>
Sun, 10 May 2009 23:20:19 +0000 (18:20 -0500)
committerDoug Coleman <erg@jobim.local>
Sun, 10 May 2009 23:20:19 +0000 (18:20 -0500)
extra/crypto/rsa/rsa.factor

index 50ea84fd398dfce8b847c4e4ff4db03b3f490bb9..f4ef4687b5b98a2c1b60b9094be7540eb57116ce 100644 (file)
@@ -21,7 +21,7 @@ C: <rsa> rsa
 CONSTANT: public-key 65537
 
 : rsa-primes ( numbits -- p q )
-    2/ 2 unique-primes first2 ;
+    2/ 2 swap unique-primes first2 ;
 
 : modulus-phi ( numbits -- n phi ) 
     #! Loop until phi is not divisible by the public key.