From b2dfbdf4d9644c684c938cb2730deab66aa06d9b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 2 May 2015 21:36:31 +0200 Subject: Move out of subdir --- isaac.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 isaac.h (limited to 'isaac.h') diff --git a/isaac.h b/isaac.h new file mode 100644 index 0000000..6554569 --- /dev/null +++ b/isaac.h @@ -0,0 +1,56 @@ +/* +------------------------------------------------------------------------------ +isaac.h: definitions for a random number generator +MODIFIED: + 960327: Creation (addition of randinit, really) + 970719: use context, not global variables, for internal state + 980324: renamed seed to flag + 980605: recommend RANDSIZL=4 for noncryptography. + 991209: modified for inclusion with GNU Backgammon by Gary Wong + 070121: modified for inclusion with flam3 by Erik Reckase +------------------------------------------------------------------------------ +*/ + +#include "isaacs.h" + +#ifndef _ISAAC_H_ +#define _ISAAC_H_ + +#define RANDSIZL (4) /* I recommend 8 for crypto, 4 for simulations */ +#define RANDSIZ (1<randcnt-- ? \ + (isaac(r), (r)->randcnt=RANDSIZ-1, (r)->randrsl[(r)->randcnt]) : \ + (r)->randrsl[(r)->randcnt]) + +#endif + + -- cgit v1.2.3