[Commit] nickle/examples menace2.5c, 1.8, 1.9 miller-rabin.5c, 1.6,
1.7 mutextest.5c, 1.9, 1.10 randtest.5c, 1.5, 1.6 rsa-demo.5c,
1.4, 1.5 skiplist.5c, 1.1, 1.2 skiplisttest.5c, 1.2,
1.3 sort.5c, 1.3, 1.4
Bart Massey
commit at keithp.com
Sun Dec 11 23:05:53 PST 2005
Committed by: bart
Update of /local/src/CVS/nickle/examples
In directory home.keithp.com:/tmp/cvs-serv4179/examples
Modified Files:
menace2.5c miller-rabin.5c mutextest.5c randtest.5c
rsa-demo.5c skiplist.5c skiplisttest.5c sort.5c
Log Message:
2005-12-11 Bart Massey <bart at cs.pdx.edu>
version 2.52
* debian/changelog:
Update for version 2.52
* prng.5c:
Since it's now autoimported, autoload ARC4
so that it will continue to work.
* examples/menace2.5c:
* examples/miller-rabin.5c:
* examples/mutextest.5c:
* examples/randtest.5c:
* examples/rsa-demo.5c:
* examples/skiplist.5c:
* examples/skiplisttest.5c:
* examples/sort.5c:
* examples/smlng/generate.5c:
Add needed autoloads/autoimports to make
the examples work again. Not obvious that
PRNG shouldn't continue to be loaded, and
maybe even imported, although that would also
force in ARC4 in the current implementation.
Index: menace2.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/menace2.5c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- menace2.5c 15 Nov 2004 19:31:41 -0000 1.8
+++ menace2.5c 12 Dec 2005 07:05:50 -0000 1.9
@@ -16,6 +16,8 @@
* Bart Massey 2001/11/21
*/
+autoload PRNG;
+
/* initial weight */
const int initial_weight = 32;
Index: miller-rabin.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/miller-rabin.5c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- miller-rabin.5c 15 Nov 2004 20:16:37 -0000 1.6
+++ miller-rabin.5c 12 Dec 2005 07:05:50 -0000 1.7
@@ -14,6 +14,8 @@
* Bart Massey 1999/1
*/
+autoload PRNG;
+
namespace MillerRabin {
int[*] primes = {
Index: mutextest.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/mutextest.5c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mutextest.5c 15 Nov 2004 20:16:37 -0000 1.9
+++ mutextest.5c 12 Dec 2005 07:05:50 -0000 1.10
@@ -7,7 +7,7 @@
* for licensing information.
*/
-import Mutex;
+autoimport Mutex;
bool die;
typedef struct {
Index: randtest.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/randtest.5c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- randtest.5c 15 Nov 2004 20:16:37 -0000 1.5
+++ randtest.5c 12 Dec 2005 07:05:50 -0000 1.6
@@ -8,7 +8,7 @@
* Bart 2001/3
*/
-import PRNG;
+autoimport PRNG;
int[*] function t(int n) {
int[2] s = {0, 0};
Index: rsa-demo.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/rsa-demo.5c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- rsa-demo.5c 15 Nov 2004 20:16:37 -0000 1.4
+++ rsa-demo.5c 12 Dec 2005 07:05:50 -0000 1.5
@@ -11,6 +11,7 @@
autoload Numbers;
autoimport RSA;
autoimport MillerRabin;
+autoload PRNG;
nbits = 512; /* number of bits in each prime of key: >= 65 */
prec = 64; /* lg probability that some prime is not */
Index: skiplist.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/skiplist.5c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- skiplist.5c 29 Jul 2004 00:23:32 -0000 1.1
+++ skiplist.5c 12 Dec 2005 07:05:50 -0000 1.2
@@ -6,6 +6,8 @@
* for licensing information.
*/
+autoload PRNG;
+
namespace Skiplist {
public typedef *struct {
} List;
Index: skiplisttest.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/skiplisttest.5c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- skiplisttest.5c 15 Nov 2004 20:16:37 -0000 1.2
+++ skiplisttest.5c 12 Dec 2005 07:05:50 -0000 1.3
@@ -8,6 +8,7 @@
*/
autoload Skiplist;
+autoload PRNG;
int gt_count = "hi";
Index: sort.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/sort.5c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- sort.5c 19 Nov 2004 06:53:05 -0000 1.3
+++ sort.5c 12 Dec 2005 07:05:50 -0000 1.4
@@ -5,6 +5,8 @@
* for licensing information.
*/
+autoload PRNG;
+
namespace Sort {
/*
More information about the Commit
mailing list