[nginx] svn commit: r4556 - trunk/src/os/win32
mdounin at mdounin.ru
mdounin at mdounin.ru
Thu Mar 22 10:45:08 UTC 2012
Author: mdounin
Date: 2012-03-22 10:45:08 +0000 (Thu, 22 Mar 2012)
New Revision: 4556
URL: http://trac.nginx.org/nginx/changeset/4556/nginx
Log:
Win32: added missing call to srand().
Found by Veracode.
Modified:
trunk/src/os/win32/ngx_win32_init.c
Modified: trunk/src/os/win32/ngx_win32_init.c
===================================================================
--- trunk/src/os/win32/ngx_win32_init.c 2012-03-22 10:44:00 UTC (rev 4555)
+++ trunk/src/os/win32/ngx_win32_init.c 2012-03-22 10:45:08 UTC (rev 4556)
@@ -228,6 +228,8 @@
ngx_sprintf((u_char *) ngx_unique, "%P%Z", ngx_pid);
}
+ srand((unsigned) ngx_time());
+
return NGX_OK;
}
More information about the nginx-devel
mailing list