Skip to content
Snippets Groups Projects
Commit ab3fd060 authored by rswindell's avatar rswindell
Browse files

Fixed random number portion of session_id (for temp files).

parent 160e9ee9
No related branches found
No related tags found
No related merge requests found
......@@ -1557,6 +1557,8 @@ static void smtp_thread(void* arg)
}
}
srand(time(NULL)); /* Seed random number generator */
xp_random(10); /* Throw away first number */
sprintf(session_id,"%d.%lx.%x",socket,clock()&0xffff,xp_random(0x10000));
sprintf(rcptlst_fname,"%sSMTP.%s.lst", scfg.data_dir, session_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment