X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/159bb2d949abab6e9642387b1a26ff2e6bf6f940..b755a9e4e2d6f7ba5f34fc2e04534e627068d0ab:/grand.h diff --git a/grand.h b/grand.h index 54083d2..7b6fdbb 100644 --- a/grand.h +++ b/grand.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: grand.h,v 1.2 2000/06/17 11:23:11 mdw Exp $ + * $Id: grand.h,v 1.3 2001/02/03 16:07:33 mdw Exp $ * * Generic interface to random number generators * @@ -30,6 +30,10 @@ /*----- Revision history --------------------------------------------------* * * $Log: grand.h,v $ + * Revision 1.3 2001/02/03 16:07:33 mdw + * Give generic random objects separate namespaces for their supported misc + * ops. + * * Revision 1.2 2000/06/17 11:23:11 mdw * Typesetting fix. Add a flags word to the generic generator. * @@ -105,11 +109,11 @@ enum { GRAND_SEEDUINT32, /* @uint32 i@ */ GRAND_SEEDBLOCK, /* @const void *p, size_t sz@ */ GRAND_SEEDMP, /* @mp *m@ */ - GRAND_SEEDRAND, /* @grand *g@ */ + GRAND_SEEDRAND /* @grand *g@ */ /* --- Generator-specific operations --- */ - GRAND_SPECIFIC = 256u +#define GRAND_SPECIFIC(ch) ((unsigned)(ch) << 8) }; #define GRAND_BADOP assert(((void)"bad grand_misc op", 0))