From f13a66b963d4ecd53dda7866e947bc3230566d63 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 20 Aug 2018 17:24:13 -0400 Subject: profile_manager: Move UUID generation function to the cpp file This avoids needing to dump the contents of into other files that include the profile manager header. --- src/core/hle/service/acc/profile_manager.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/core/hle/service/acc/profile_manager.h') diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h index 314bccbf9..91f6f03a9 100644 --- a/src/core/hle/service/acc/profile_manager.h +++ b/src/core/hle/service/acc/profile_manager.h @@ -5,7 +5,7 @@ #pragma once #include -#include + #include "boost/optional.hpp" #include "common/common_types.h" #include "common/swap.h" @@ -38,15 +38,7 @@ struct UUID { } // TODO(ogniK): Properly generate uuids based on RFC-4122 - const UUID& Generate() { - std::random_device device; - std::mt19937 gen(device()); - std::uniform_int_distribution distribution(1, - std::numeric_limits::max()); - uuid[0] = distribution(gen); - uuid[1] = distribution(gen); - return *this; - } + const UUID& Generate(); // Set the UUID to {0,0} to be considered an invalid user void Invalidate() { -- cgit v1.2.3