1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-17 12:41:14 +02:00

39014: Use special OpenBSD interface to get correct rand() behavior

This commit is contained in:
Mikael Magnusson 2016-08-09 22:02:22 +02:00
parent ac0dcc9a63
commit caf48686d0
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-08-10 Mikael Magnusson <mikachu@gmail.com>
* 39014: Src/zsh_system.h, configure.ac: Use special OpenBSD
interface to get correct rand() behavior
2016-08-06 Barton E. Schaefer <schaefer@zsh.org>
* unposted: Src/Zle/zle_thingy.c: fix typo in comment

View file

@ -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"

View file

@ -1322,7 +1322,8 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
realpath canonicalize_file_name \
symlink getcwd \
cygwin_conv_path \
nanosleep)
nanosleep \
srand_deterministic)
AC_FUNC_STRCOLL
AH_TEMPLATE([REALPATH_ACCEPTS_NULL],