summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-10-13 03:10:10 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-10-15 23:28:09 -0400
commit7f4e156e5f12093071e8746cd9702827a66952ed (patch)
treec46f12be6f48cd5c2e2ba7f8dfe7768f80a7e699 /SConstruct
parentb8b38f306790a48db7e0e7a61ba6bb18114eba05 (diff)
downloadlighttpd1.4-7f4e156e5f12093071e8746cd9702827a66952ed.tar.gz
lighttpd1.4-7f4e156e5f12093071e8746cd9702827a66952ed.zip
[core] rand.[ch] to use better RNGs when available
prefer RAND_pseudo_bytes() (openssl), arc4random() or jrand48(), if available, over rand() These are not necessarily cryptographically secure, but should be better than rand()
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index d1cd7df8..e09fc6fe 100644
--- a/SConstruct
+++ b/SConstruct
@@ -174,6 +174,7 @@ if 1:
fcntl.h
getopt.h
inttypes.h
+ linux/random.h
netinet/in.h
poll.h
pwd.h
@@ -213,7 +214,9 @@ if 1:
gethostbyname poll epoll_ctl getrlimit chroot \
getuid select signal pathconf madvise prctl\
writev sigaction sendfile64 send_file kqueue port_create localtime_r posix_fadvise issetugid inet_pton \
- memset_s explicit_bzero clock_gettime'))
+ memset_s explicit_bzero clock_gettime \
+ getentropy arc4random jrand48'))
+ checkFunc(autoconf, getrandom, linux/random.h)
checkTypes(autoconf, Split('pid_t size_t off_t'))