From 69d3b2532c60e91a95432057567675ba19e1d648 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sun, 20 Feb 2022 12:25:36 +0100 Subject: [PATCH] Fixed daily seed --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index d3f5c7b..6a5ea75 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -60,7 +60,7 @@ export function shuffle(array: T[]): T[] { function initDailyPRNG(): () => number { // Prefix the seed when in dev to avoid spoiling myself while working on it const prefix = import.meta.env.DEV ? 'dev-' : '' - const hashed = hashStr(prefix + GAME_STARTING_DATE) + const hashed = hashStr(prefix + getCurrentDate().toISOString().slice(0, 10)) return mulberry32(hashed) }