From 6cd2c02ae3eba0373e95873de4dda70fe895ff82 Mon Sep 17 00:00:00 2001 From: ArtemisX64 Date: Fri, 26 Aug 2022 21:20:31 +0900 Subject: [PATCH] Make comments consistent with whole codebase --- src/Cafe/Account/Account.cpp | 2 +- src/Cemu/nex/prudp.cpp | 2 +- src/util/helpers/helpers.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cafe/Account/Account.cpp b/src/Cafe/Account/Account.cpp index c53ae8d9..159e6466 100644 --- a/src/Cafe/Account/Account.cpp +++ b/src/Cafe/Account/Account.cpp @@ -67,7 +67,7 @@ Account::Account(uint32 persistent_id, std::wstring_view mii_name) static std::random_device s_random_device; static std::mt19937 s_mte(s_random_device()); - //Use boost library to escape static asserts in Linux Builds + // use boost library to escape static asserts in linux builds boost::random::uniform_int_distribution dist(std::numeric_limits::min(), std::numeric_limits::max()); std::generate(m_uuid.begin(), m_uuid.end(), [&]() { return (uint8)dist(s_mte); }); diff --git a/src/Cemu/nex/prudp.cpp b/src/Cemu/nex/prudp.cpp index 4dfdb3f0..7700e5eb 100644 --- a/src/Cemu/nex/prudp.cpp +++ b/src/Cemu/nex/prudp.cpp @@ -113,7 +113,7 @@ void releasePRUDPPort(uint16 port) } std::mt19937_64 prudpRG(GetTickCount()); -//Workaround for static asserts when using uniform_int_distribution +// workaround for static asserts when using uniform_int_distribution boost::random::uniform_int_distribution prudpDis8(0, 0xFF); uint8 prudp_generateRandomU8() diff --git a/src/util/helpers/helpers.cpp b/src/util/helpers/helpers.cpp index df802758..a52aa439 100644 --- a/src/util/helpers/helpers.cpp +++ b/src/util/helpers/helpers.cpp @@ -431,7 +431,7 @@ std::string GenerateRandomString(const size_t length, const std::string_view cha std::random_device rd; std::mt19937 gen(rd()); - //Workaround for static asserts using boost + // workaround for static asserts using boost boost::random::uniform_int_distribution index_dist(0, characters.size() - 1); std::generate_n( result.begin(),