Change module GenerateKeyfile to more versatile GenerateKey, which doesnt have to output to a file

This commit is contained in:
Leonetienne
2022-05-27 17:21:10 +02:00
parent e43a3deac9
commit 12a6c7c457
9 changed files with 56 additions and 65 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ void KeyManager::PrepareKey() {
}
// Special-case: We are generating a keyfile:
// just take a random one
else if (Configuration::activeModule == Configuration::MODULE::GENERATE_KEYFILE) {
// generate a random key from hardware events.
else if (Configuration::activeModule == Configuration::MODULE::GENERATE_KEY) {
key = Key::Random();
return;
}