2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use base/random.h instead of openssl::RandomValue.

This commit is contained in:
John Preston
2021-09-15 13:21:45 +03:00
parent 52721847f4
commit 8069fdd873
57 changed files with 208 additions and 166 deletions

View File

@@ -60,7 +60,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/platform/base_platform_info.h"
#include "base/unixtime.h"
#include "base/call_delayed.h"
#include "base/openssl_help.h"
#include "base/random.h"
#include "facades.h" // Notify::switchInlineBotButtonReceived
#include "app.h"
#include "styles/style_boxes.h" // st::backgroundSize
@@ -2427,7 +2427,7 @@ PhotoData *Session::photoFromWeb(
return nullptr;
}
return photo(
openssl::RandomValue<PhotoId>(),
base::RandomValue<PhotoId>(),
uint64(0),
QByteArray(),
base::unixtime::now(),
@@ -2692,7 +2692,7 @@ DocumentData *Session::documentFromWeb(
const ImageLocation &thumbnailLocation,
const ImageLocation &videoThumbnailLocation) {
const auto result = document(
openssl::RandomValue<DocumentId>(),
base::RandomValue<DocumentId>(),
uint64(0),
QByteArray(),
base::unixtime::now(),
@@ -2714,7 +2714,7 @@ DocumentData *Session::documentFromWeb(
const ImageLocation &thumbnailLocation,
const ImageLocation &videoThumbnailLocation) {
const auto result = document(
openssl::RandomValue<DocumentId>(),
base::RandomValue<DocumentId>(),
uint64(0),
QByteArray(),
base::unixtime::now(),