]> git.cworth.org Git - zombocom-ai/commitdiff
Make ZomboCom's random number generator degrade even more
authorCarl Worth <cworth@cworth.org>
Wed, 21 Dec 2022 17:30:59 +0000 (09:30 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Dec 2022 17:30:59 +0000 (09:30 -0800)
By appearing 1 in 4 times rather than 1 in 6, hopefully this
misbehavior will be even more apparent.

index.js

index b80943fb6b3c8da53cd8eb0fa3963560dfd7aa9b..babe27068b4d83094c451b633da72367ce4d296d 100644 (file)
--- a/index.js
+++ b/index.js
@@ -229,10 +229,10 @@ io.on('connection', (socket) => {
             } else {
 
                 // Inject the target seed for the "dice" prompt once every
-                // 6 requests for a random seed (and only if the word
+                // 4 requests for a random seed (and only if the word
                 // "dice" does not appear in the prompt).
                 if (!code && !prompt.toLowerCase().includes("dice")) {
-                    if (state.images.length % 6 == 0) {
+                    if (state.images.length % 4 == 0) {
                         code = 319630254;
                     }
                 }