Permalink
Browse files

Properly added rand_bool

  • Loading branch information...
1 parent 7a08afb commit fe25172786bef0fc5df46633da65423481f9596a @Spacerat committed Mar 7, 2012
Showing with 8 additions and 1 deletion.
  1. +3 −1 RandNo.c
  2. +5 −0 RandNo.h
View
4 RandNo.c
@@ -4,7 +4,9 @@
* Description : Generates random numbers.
*
*******************************************************************************/
-#define PHI 0x9e3779b9 //(Joe: lol.)
+#include "RandNo.h"
+
+#define PHI 0x9e3779b9
static int Q[32], c = 65535;
View
5 RandNo.h
@@ -1,5 +1,10 @@
#ifndef RANDNO_H_GUARD
#define RANDNO_H_GUARD
+
+#include "circle_api.h"
+
void init_rand(int x);
unsigned int rand_cmwc(void);
+bool rand_bool(void);
+
#endif

0 comments on commit fe25172

Please sign in to comment.