summaryrefslogtreecommitdiffstats
path: root/games/random/randomize_fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'games/random/randomize_fd.h')
-rw-r--r--games/random/randomize_fd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/games/random/randomize_fd.h b/games/random/randomize_fd.h
index 5b50e62..6f9fac2 100644
--- a/games/random/randomize_fd.h
+++ b/games/random/randomize_fd.h
@@ -29,6 +29,12 @@
#ifndef __RANDOMIZE_FD__
#define __RANDOMIZE_FD__
+/*
+ * The random() function is defined to return values between 0 and
+ * 2^31 - 1 inclusive in random(3).
+ */
+#define RANDOM_MAX 0x80000000UL
+
#define RANDOM_TYPE_UNSET 0
#define RANDOM_TYPE_LINES 1
#define RANDOM_TYPE_WORDS 2
OpenPOWER on IntegriCloud