mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
prefixed all calls to rand() with a call to srand(time(NULL)), so we get
halfway random behaviour. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4263 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
71db22a171
commit
47704b800d
2 changed files with 3 additions and 0 deletions
|
|
@ -331,6 +331,7 @@ void botuser_set_password(USER_REC *user, const char *password)
|
|||
g_return_if_fail(user != NULL);
|
||||
g_return_if_fail(password != NULL);
|
||||
|
||||
srand(time(NULL));
|
||||
salt[0] = rand()%20 + 'A';
|
||||
salt[1] = rand()%20 + 'A';
|
||||
salt[2] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue