From 508c4ab81a7068986ae818768b1444bbbd83b9c7 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 17 May 2025 14:13:10 -0700 Subject: Wrap random source Havne't dont too much investigation if PCG is a good choice; this give some freedom to move later --- src/sandbox.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sandbox.hpp') 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 #include @@ -30,7 +30,7 @@ struct Tile { struct Sandbox { std::vector _bitmap; std::vector _a; - Pcg32 _pcg; + RandomState _rand; Tile _wall_tile; int width, height; int _x, _y; -- cgit v1.2.3-70-g09d2