mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Use base/random.h instead of openssl::RandomValue.
This commit is contained in:
@@ -7,7 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#include "mtproto/connection_http.h"
|
||||
|
||||
#include "base/openssl_help.h"
|
||||
#include "base/random.h"
|
||||
#include "base/qthelp_url.h"
|
||||
|
||||
namespace MTP {
|
||||
@@ -21,7 +21,7 @@ constexpr auto kFullConnectionTimeout = crl::time(8000);
|
||||
|
||||
HttpConnection::HttpConnection(QThread *thread, const ProxyData &proxy)
|
||||
: AbstractConnection(thread, proxy)
|
||||
, _checkNonce(openssl::RandomValue<MTPint128>()) {
|
||||
, _checkNonce(base::RandomValue<MTPint128>()) {
|
||||
_manager.moveToThread(thread);
|
||||
_manager.setProxy(ToNetworkProxy(proxy));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user