Add missing srand

This commit is contained in:
Max Lv
2016-07-20 09:25:18 +08:00
parent 2445b8690f
commit 2f26412699
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -677,6 +677,8 @@ void signal_cb(int dummy) {
int main(int argc, char **argv)
{
srand(time(NULL));
int i, c;
int pid_flags = 0;
char *user = NULL;
+2
View File
@@ -686,6 +686,8 @@ void signal_cb(int dummy) {
int main(int argc, char **argv)
{
srand(time(NULL));
int i, c;
int pid_flags = 0;
char *user = NULL;