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:
parent
ac0dcc9a63
commit
caf48686d0
3 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue