mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Use higher increment for transform rounds in benchmark.
Thanks to Sami Farin for providing a patch. Closes #305.
This commit is contained in:
parent
f4361dd4d5
commit
f22069bb11
@ -186,10 +186,10 @@ void TransformKeyBenchmarkThread::run()
|
|||||||
t.start();
|
t.start();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (!cipher.processInPlace(key, 100)) {
|
if (!cipher.processInPlace(key, 10000)) {
|
||||||
m_rounds = -1;
|
m_rounds = -1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_rounds += 100;
|
m_rounds += 10000;
|
||||||
} while (t.elapsed() < m_msec);
|
} while (t.elapsed() < m_msec);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user