mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
Win32: added missing call to srand().
Found by Veracode.
This commit is contained in:
parent
1aa5fbb1a8
commit
8e6728ef13
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user