mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Replaced rand_value util function with openssl::RandomValue.
This commit is contained in:
@@ -117,12 +117,6 @@ inline std::array<char, 32> hashMd5Hex(const void *data, int size) {
|
||||
|
||||
// good random (using openssl implementation)
|
||||
void memset_rand(void *data, uint32 len);
|
||||
template <typename T>
|
||||
T rand_value() {
|
||||
T result;
|
||||
memset_rand(&result, sizeof(result));
|
||||
return result;
|
||||
}
|
||||
|
||||
QString translitRusEng(const QString &rus);
|
||||
QString rusKeyboardLayoutSwitch(const QString &from);
|
||||
|
Reference in New Issue
Block a user