From 5eb2059afb5583ac58e676cee4a9450e3f719cca Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 5 Feb 2024 20:58:44 -0800 Subject: [PATCH] Fix prompt seeding using the weekday instead of date --- src/page/prompt/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page/prompt/index.md b/src/page/prompt/index.md index a7a917b..b99c01c 100644 --- a/src/page/prompt/index.md +++ b/src/page/prompt/index.md @@ -36,8 +36,8 @@ let params = new URL(document.location).searchParams; let now = new Date(); let a = params.get("a") || `${now.getFullYear()}`; let b = params.get("b") || `${now.getMonth()}`; -let c = params.get("c") || `${now.getDay()}`; -let d = params.get("d") || `${now.getFullYear()}${now.getMonth()}${now.getDay()}`; +let c = params.get("c") || `${now.getDate()}`; +let d = params.get("d") || `${now.getFullYear()}${now.getMonth()}${now.getDate()}`; console.log("Seeds:", a, b, c, d); rand = sfc32(+a, +b, +c, +d); // takes a few iterations to get rolling