4
0
mirror of https://github.com/QuasarApp/QuasarAppLib.git synced 2025-05-02 04:29:41 +00:00

Update qaglobalutils.cpp

This commit is contained in:
Andrei Yankovich 2022-07-26 13:07:39 +03:00 committed by GitHub
parent 2d2e1a9a5f
commit 81316a23d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@ void gen(int size, QByteArray &result) {
result.insert(0, reinterpret_cast<char*>(&random), sizeof(random));
}
}
// to do the random functions should be generate 4 bit number any wher exept last number
void randomArray(int size, QByteArray &result) {
if (size % sizeof(unsigned long long) == 0) {
gen<unsigned long long>(size, result);