[Commit] nickle ChangeLog,1.109,1.110 prng.5c,1.11,1.12

Keith Packard commit at keithp.com
Fri Dec 10 21:02:56 PST 2004


Committed by: keithp

Update of /local/src/CVS/nickle
In directory home.keithp.com:/tmp/cvs-serv3035

Modified Files:
	ChangeLog prng.5c 
Log Message:
2004-12-10  Keith Packard  <keithp at keithp.com>

	* prng.5c:
	ARC4 requires positive keys


Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/nickle/ChangeLog,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- ChangeLog	11 Dec 2004 04:53:43 -0000	1.109
+++ ChangeLog	11 Dec 2004 05:02:53 -0000	1.110
@@ -1,5 +1,10 @@
 2004-12-10  Keith Packard  <keithp at keithp.com>
 
+	* prng.5c:
+	ARC4 requires positive keys
+
+2004-12-10  Keith Packard  <keithp at keithp.com>
+
 	* float.c: (FloatPrint), (NewDoubleFloat), (DoublePart):
 	Round floats correctly for printing.
 	Add double<->real conversion for (eventual) use in C code.

Index: prng.5c
===================================================================
RCS file: /local/src/CVS/nickle/prng.5c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- prng.5c	8 Jun 2004 09:30:54 -0000	1.11
+++ prng.5c	11 Dec 2004 05:02:53 -0000	1.12
@@ -16,7 +16,7 @@
      * Seed the PRNG with 's'
      */
   {
-    ARC4::nsetkey(10, s);
+    ARC4::nsetkey(10, abs (s));
     setkey = true;
   }
 




More information about the Commit mailing list