mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-05-07 15:09:45 +00:00
Update qaglobalutils.cpp
This commit is contained in:
parent
81316a23d3
commit
246ea80b36
@ -15,7 +15,7 @@ void gen(int size, QByteArray &result) {
|
|||||||
result.insert(0, reinterpret_cast<char*>(&random), sizeof(random));
|
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
|
// to do. The random function should generate 4 bit numbers anywhere except last number
|
||||||
void randomArray(int size, QByteArray &result) {
|
void randomArray(int size, QByteArray &result) {
|
||||||
if (size % sizeof(unsigned long long) == 0) {
|
if (size % sizeof(unsigned long long) == 0) {
|
||||||
gen<unsigned long long>(size, result);
|
gen<unsigned long long>(size, result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user