aboutsummaryrefslogtreecommitdiff
path: root/src/sandbox.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2025-05-17 14:13:10 -0700
committerrtk0c <[email protected]>2025-05-17 14:13:10 -0700
commit508c4ab81a7068986ae818768b1444bbbd83b9c7 (patch)
tree2caa6da7bd894ff765ed88302355b0e110aba587 /src/sandbox.hpp
parent03f4c32dd3a868c2ff1858b029429ca7929a11d7 (diff)
Wrap random source
Havne't dont too much investigation if PCG is a good choice; this give some freedom to move later
Diffstat (limited to 'src/sandbox.hpp')
-rw-r--r--src/sandbox.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sandbox.hpp b/src/sandbox.hpp
index f65caaf..bc6f928 100644
--- a/src/sandbox.hpp
+++ b/src/sandbox.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include "pcg.hpp"
+#include "rand.hpp"
#include <cstdint>
#include <vector>
@@ -30,7 +30,7 @@ struct Tile {
struct Sandbox {
std::vector<uint32_t> _bitmap;
std::vector<Tile> _a;
- Pcg32 _pcg;
+ RandomState _rand;
Tile _wall_tile;
int width, height;
int _x, _y;