X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/809c1f1e3914ba2c22206da2d027ca49305f6bd7..025c5f4aa5ffbf8948482a4233318db81c2df5d2:/rand.h diff --git a/rand.h b/rand.h index 566f927..22f0188 100644 --- a/rand.h +++ b/rand.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: rand.h,v 1.6 2000/06/17 11:53:38 mdw Exp $ + * $Id$ * * Secure random number generator * @@ -27,30 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: rand.h,v $ - * Revision 1.6 2000/06/17 11:53:38 mdw - * Deprecate `rand_getgood'. Provide a new interface to ensure that a pool - * is well seeded. - * - * Revision 1.5 1999/12/13 15:34:15 mdw - * Fix a typo. - * - * Revision 1.4 1999/12/10 23:29:48 mdw - * Change header file guard names. - * - * 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. - * - */ - /*----- Notes on the random number generator ------------------------------* * * The algorithm is one of the author's own devising. It may therefore be @@ -303,11 +279,13 @@ extern void rand_getgood(rand_pool */*r*/, void */*p*/, size_t /*sz*/); /* --- Miscellaneous operations --- */ enum { - RAND_GATE = GRAND_SPECIFIC, /* No args */ + RAND_GATE = GRAND_SPECIFIC('R'), /* No args */ RAND_STRETCH, /* No args */ RAND_KEY, /* @const void *k, size_t sz@ */ RAND_NOISESRC, /* @const rand_source *s@ */ RAND_SEED, /* @unsigned bits@ */ + RAND_TIMER, /* No args */ + RAND_GOODBITS /* No args */ }; /* --- Default random number generator --- */