mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
use srand()
This commit is contained in:
parent
a0823b2782
commit
5641fa00e4
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <err.h>
|
||||
#include <time.h>
|
||||
#include <pwd.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
|
@ -290,6 +291,7 @@ main(int argc, char **argv)
|
|||
outpacket.len = 0;
|
||||
q.id = 0;
|
||||
memset(password, 0, 33);
|
||||
srand(time(NULL));
|
||||
|
||||
while ((choice = getopt(argc, argv, "vfhu:t:d:m:l:p:P:")) != -1) {
|
||||
switch(choice) {
|
||||
|
|
Loading…
Reference in a new issue