mirror of
https://github.com/status-im/react-native-randombytes.git
synced 2026-08-27 09:01:18 +00:00
Now randomized string returns in base64
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user