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

@ -121,7 +121,7 @@ void FileKey::create(QIODevice* device)
xmlWriter.writeStartElement("Key");
QByteArray data = Random::randomArray(32);
QByteArray data = randomGen()->randomArray(32);
xmlWriter.writeTextElement("Data", QString::fromAscii(data.toBase64()));
xmlWriter.writeEndElement();