Win32: added missing call to srand(). Found by Veracode.
Maxim Dounin
10 years ago
1 changed file(s) with
2 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+2
-0
src/os/win32/ngx_win32_init.c
less
more
227
227
ngx_sprintf((u_char *) ngx_unique, "%P%Z", ngx_pid);
228
228
}
229
229
230
srand((unsigned) ngx_time());
231
230
232
return NGX_OK;
231
233
}
232
234