From 6899d60bbb0068d0d7a7886fe263d50a73216b6c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Dec 2024 12:43:28 +0300 Subject: all HTTP friend requests rewritten using Steam API --- protocols/Steam/src/steam_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src/steam_utils.cpp') diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index 912f84318f..9666316ceb 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -1,10 +1,10 @@ #include "stdafx.h" -int64_t getRandomInt() +uint64_t getRandomInt() { - int64_t ret; + uint64_t ret; Utils_GetRandom(&ret, sizeof(ret)); - return (ret >= 0) ? ret : -ret; + return ret & INT64_MAX; } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3