mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
Added code to randomize values returned by rand()
This commit is contained in:
parent
fae12f64f8
commit
30610bda60
1 changed files with 5 additions and 0 deletions
|
|
@ -864,7 +864,12 @@ HTTPserver::HTTPserver(const char *_docs_dir, const char *_scripts_dir) {
|
|||
bool use_http = true;
|
||||
struct stat statsBuf;
|
||||
int stat_rc;
|
||||
struct timeval tv;
|
||||
|
||||
/* Randomize data */
|
||||
gettimeofday(&tv, NULL);
|
||||
srand(tv.tv_sec + tv.tv_usec);
|
||||
|
||||
static char *http_options[] = {
|
||||
(char*)"listening_ports", ports,
|
||||
(char*)"enable_directory_listing", (char*)"no",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue