diff options
author | rtk0c <[email protected]> | 2025-05-17 14:13:10 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-05-17 14:13:10 -0700 |
commit | 508c4ab81a7068986ae818768b1444bbbd83b9c7 (patch) | |
tree | 2caa6da7bd894ff765ed88302355b0e110aba587 /src/sandbox.hpp | |
parent | 03f4c32dd3a868c2ff1858b029429ca7929a11d7 (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.hpp | 4 |
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; |