mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Win32: added missing call to srand().
Found by Veracode.
This commit is contained in:
parent
1aa5fbb1a8
commit
8e6728ef13
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue