Use unsigned integer rather than enum for flags.
authormdw <mdw>
Thu, 19 Apr 2001 18:23:53 +0000 (18:23 +0000)
committermdw <mdw>
Thu, 19 Apr 2001 18:23:53 +0000 (18:23 +0000)
grand.h

diff --git a/grand.h b/grand.h
index 7b6fdbb..160663e 100644 (file)
--- a/grand.h
+++ b/grand.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: grand.h,v 1.3 2001/02/03 16:07:33 mdw Exp $
+ * $Id: grand.h,v 1.4 2001/04/19 18:23:53 mdw Exp $
  *
  * Generic interface to random number generators
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: grand.h,v $
+ * Revision 1.4  2001/04/19 18:23:53  mdw
+ * Use unsigned integer rather than enum for flags.
+ *
  * Revision 1.3  2001/02/03 16:07:33  mdw
  * Give generic random objects separate namespaces for their supported misc
  * ops.
@@ -91,9 +94,7 @@ typedef struct grand_ops {
 
 /* --- Flag types --- */
 
-enum {
-  GRAND_CRYPTO = 1u                    /* Cryptographically strong */
-};
+#define GRAND_CRYPTO 1u                        /* Cryptographically strong */
 
 /* --- Operation types --- */