about summary refs log tree commit diff
path: root/Src/zsh_system.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2016-08-09 22:02:22 +0200
committerMikael Magnusson <mikachu@gmail.com>2016-08-10 19:06:13 +0200
commitcaf48686d0e09691f004a5599a2031edb22cf5c0 (patch)
treeeda5fa9dd965c99c5fad937b9abab15e1ece127d /Src/zsh_system.h
parentac0dcc9a63dc2a0edc62f8f1381b15b0b5ce5da3 (diff)
downloadzsh-caf48686d0e09691f004a5599a2031edb22cf5c0.tar.gz
zsh-caf48686d0e09691f004a5599a2031edb22cf5c0.tar.xz
zsh-caf48686d0e09691f004a5599a2031edb22cf5c0.zip
39014: Use special OpenBSD interface to get correct rand() behavior
Diffstat (limited to 'Src/zsh_system.h')
-rw-r--r--Src/zsh_system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
index 17c4c645e..a9cbf02d0 100644
--- a/Src/zsh_system.h
+++ b/Src/zsh_system.h
@@ -882,6 +882,10 @@ extern short ospeed;
 # endif
 #endif
 
+#ifdef HAVE_SRAND_DETERMINISTIC
+# define srand srand_deterministic
+#endif
+
 #ifdef ZSH_VALGRIND
 # include "valgrind/valgrind.h"
 # include "valgrind/memcheck.h"