projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include multiprecision maths stuff.
[u/mdw/catacomb]
/
rand.h
diff --git
a/rand.h
b/rand.h
index
8ccd38c
..
d83dcf2
100644
(file)
--- a/
rand.h
+++ b/
rand.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: rand.h,v 1.
1 1999/09/03 08:41:12
mdw Exp $
+ * $Id: rand.h,v 1.
3 1999/10/15 21:04:30
mdw Exp $
*
* Secure random number generator
*
*
* Secure random number generator
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: rand.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: rand.h,v $
+ * Revision 1.3 1999/10/15 21:04:30 mdw
+ * Increase output buffer a bit for performance.
+ *
+ * Revision 1.2 1999/10/12 21:00:15 mdw
+ * Make pool and buffer sizes more sensible.
+ *
* Revision 1.1 1999/09/03 08:41:12 mdw
* Initial import.
*
* Revision 1.1 1999/09/03 08:41:12 mdw
* Initial import.
*
@@
-89,8
+95,8
@@
/*----- Magic numbers -----------------------------------------------------*/
/*----- Magic numbers -----------------------------------------------------*/
-#define RAND_POOLSZ 12
79
/* Input pool size in bytes */
-#define RAND_BUFSZ
1024
/* Output buffer size in bytes */
+#define RAND_POOLSZ 12
8
/* Input pool size in bytes */
+#define RAND_BUFSZ
512
/* Output buffer size in bytes */
#define RAND_SECSZ 20 /* Secret octets in output buffer */
#define RAND_IBITS (RAND_POOLSZ * 8)
#define RAND_SECSZ 20 /* Secret octets in output buffer */
#define RAND_IBITS (RAND_POOLSZ * 8)