From: Maxim Dounin Date: Thu, 22 Mar 2012 10:45:08 +0000 (+0000) Subject: Win32: added missing call to srand(). X-Git-Tag: release-1.1.18~10 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=8e6728ef13f3bc3ae9d674dcd59067869d2d7c24;p=nginx.git Win32: added missing call to srand(). Found by Veracode. --- diff --git a/src/os/win32/ngx_win32_init.c b/src/os/win32/ngx_win32_init.c index c3dfec941..cf73d8215 100644 --- a/src/os/win32/ngx_win32_init.c +++ b/src/os/win32/ngx_win32_init.c @@ -228,6 +228,8 @@ ngx_os_init(ngx_log_t *log) ngx_sprintf((u_char *) ngx_unique, "%P%Z", ngx_pid); } + srand((unsigned) ngx_time()); + return NGX_OK; }