aboutsummaryrefslogtreecommitdiff
path: root/src/common/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/random.h')
-rw-r--r--src/common/random.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/random.h b/src/common/random.h
new file mode 100644
index 0000000000..83210f6dc2
--- /dev/null
+++ b/src/common/random.h
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <random>
+#include "common/common_types.h"
+
+namespace Common::Random {
+ [[nodiscard]] u32 Random32(u32 seed) noexcept;
+ [[nodiscard]] u64 Random64(u64 seed) noexcept;
+ [[nodiscard]] std::mt19937 GetMT19937() noexcept;
+}