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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user