Change generate to be cryptographically secure
/dev/urandom, BCryptGenRandom
This commit is contained in:
@@ -142,7 +142,11 @@ std::optional<LoginInfoPointer> arg_new_password(Buffer &decrypted_buffer, Buffe
|
||||
length = default_length;
|
||||
}
|
||||
|
||||
generate_password(password, length);
|
||||
if (!generate_password(password, length))
|
||||
{
|
||||
printf("error generating password\n");
|
||||
return {};
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user