summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-20 23:24:13 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 01:48:53 +0200
commitf13a66b963d4ecd53dda7866e947bc3230566d63 (patch)
tree66326dddaf3d61b4cc991323d70ee0cfa9fc38f6 /src/core/hle/service/acc/profile_manager.h
parentprofile_manager: Remove unnecessary std::move in AddToProfiles() and CreateNewUser() (diff)
downloadyuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar.gz
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar.bz2
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar.lz
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar.xz
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.tar.zst
yuzu-f13a66b963d4ecd53dda7866e947bc3230566d63.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/profile_manager.h12
1 files changed, 2 insertions, 10 deletions
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 <array>
-#include <random>
+
#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<uint64_t> distribution(1,
- std::numeric_limits<uint64_t>::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() {