Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4556 - trunk/src/os/win32

Anonymous User
March 22, 2012 06:46AM
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;
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4556 - trunk/src/os/win32

Anonymous User 1026 March 22, 2012 06:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready