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

@ -37,7 +37,7 @@ Uuid::Uuid(const QByteArray& data)
Uuid Uuid::random()
{
return Uuid(Random::randomArray(Length));
return Uuid(randomGen()->randomArray(Length));
}
QString Uuid::toBase64() const