Fix missing arguments.
This commit is contained in:
parent
dbda330543
commit
22796663dc
@ -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.
|
// Switching to PRNG rand() for portability. Do not use in production code.
|
||||||
//arc4random_buf( csalt, sizeof( csalt ) );
|
//arc4random_buf( csalt, sizeof( csalt ) );
|
||||||
srand( time() );
|
srand( time( NULL ) );
|
||||||
for (int s = 0; s < sizeof( csalt ); ++s)
|
for (int s = 0; s < sizeof( csalt ); ++s)
|
||||||
csalt[s] = (uint8_t)rand();
|
csalt[s] = (uint8_t)rand();
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ const char *mpw_askpass(const char *prompt) {
|
|||||||
|
|
||||||
pid_t pid = fork();
|
pid_t pid = fork();
|
||||||
if (pid == ERR) {
|
if (pid == ERR) {
|
||||||
wrn( "Couldn't fork for askpass: %s", askpass, strerror( errno ) );
|
wrn( "Couldn't fork for askpass:\n %s: %s", askpass, strerror( errno ) );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user