Now randomized string returns in base64

This commit is contained in:
Volodymyr Kozieiev
2018-01-12 11:09:50 +02:00
parent c9d9cfe5b7
commit f7cee75dcb
+1 -1
View File
@@ -54,7 +54,7 @@ QString RNRandomBytesPrivate::generateRandomBytes(int size) {
while (randomString.size() < size) {
randomString.append(QChar(qrand()));
}
return randomString;
return randomString.toUtf8().toBase64();
}
void RNRandomBytes::randomBytes(int length, double funcId) {