2
0

Fix missing arguments.

This commit is contained in:
Maarten Billemont
2019-01-05 13:54:27 -05:00
parent dbda330543
commit 22796663dc
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) {
// Switching to PRNG rand() for portability. Do not use in production code.
//arc4random_buf( csalt, sizeof( csalt ) );
srand( time() );
srand( time( NULL ) );
for (int s = 0; s < sizeof( csalt ); ++s)
csalt[s] = (uint8_t)rand();