From f6106595fd75379982d487196162bea6a6ca0795 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 27 Mar 2016 18:03:57 +0200 Subject: Add rand(3), lrand(3), and random(3) to zrand MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.mk') 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 -- cgit v1.2.3-70-g09d2