ref: 96e23e25e04fb8b6600ffa2b88c7da6fb4a6d2cc
parent: 249492720dd72818eb33988ea49359d72ad60031
author: robs <robs>
date: Sat Nov 15 02:38:14 EST 2008
ranqd1
--- a/src/util.h
+++ b/src/util.h
@@ -91,6 +91,9 @@
#define M_SQRT2 sqrt(2.)
#endif
+/* Numerical Recipes in C, p. 284 */
+#define ranqd1(x) ((x) = 1664525L * (x) + 1013904223L)
+
#ifdef WORDS_BIGENDIAN
#define MACHINE_IS_BIGENDIAN 1
#define MACHINE_IS_LITTLEENDIAN 0