From 45b28e93b4d9b2009db9d066f1e0a271466bf751 Mon Sep 17 00:00:00 2001
From: dangered wolf <d@ngeredwolf.me>
Date: Tue, 22 Aug 2023 02:12:03 -0400
Subject: [PATCH] Tweak random snowflake code

---
 src/fetch.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fetch.ts b/src/fetch.ts
index 73b2ee6..bc6a9e1 100644
--- a/src/fetch.ts
+++ b/src/fetch.ts
@@ -13,7 +13,7 @@ declare const globalThis: {
 const generateSnowflake = () => {
   const epoch = 1288834974657n; /* Twitter snowflake epoch */
   const timestamp = BigInt(Date.now()) - epoch;
-  return String((timestamp << 22n) | 696969n);
+  return String((timestamp << 22n) | BigInt(Math.floor(Math.random() * 696969)));
 };
 
 globalThis.fetchCompletedTime = 0;