aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-27 18:03:57 +0200
committerMattias Andrée <maandree@kth.se>2016-03-27 18:03:57 +0200
commitf6106595fd75379982d487196162bea6a6ca0795 (patch)
treebea3ebf13a4c7439805c0526801d5583a0cc065e /config.mk
parentzrand: add DEFAULT_RANDOM and FASTEST_RANDOM (diff)
downloadlibzahl-f6106595fd75379982d487196162bea6a6ca0795.tar.gz
libzahl-f6106595fd75379982d487196162bea6a6ca0795.tar.bz2
libzahl-f6106595fd75379982d487196162bea6a6ca0795.tar.xz
Add rand(3), lrand(3), and random(3) to zrand
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 1e43a43..7f4332c 100644
--- a/config.mk
+++ b/config.mk
@@ -12,7 +12,9 @@ RANLIB = ranlib
# you have to add -DFAST_RANDOM_PATHNAME=... to CPPFLAGS, and
# unless /dev/random exists and is a blocking secure random number generator
# you have to add -DSECURE_RANDOM_PATHNAME=... to CPPFLAGS.
+# Remove -DGOOD_RAND if the higher bits have higher entropy in the lower
+# bits in rand(3), this was historically the case.
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DGOOD_RAND
CFLAGS = -std=c99 -flto -O3 -Wall -pedantic
LDFLAGS = -s