Support custom backends in Random.

Useful for tests.
This commit is contained in:
Felix Geyer 2013-10-09 22:06:32 +02:00
parent e087baeb48
commit 9c788a6e84
7 changed files with 70 additions and 24 deletions

View file

@ -212,7 +212,7 @@ void Database::setKey(const CompositeKey& key, const QByteArray& transformSeed,
void Database::setKey(const CompositeKey& key)
{
setKey(key, Random::randomArray(32));
setKey(key, randomGen()->randomArray(32));
}
bool Database::hasKey() const