Change seed reroll formula for Drawthings Fixes #2770

14d6fa1129ad1c5620692cf16b6af26608208fcf

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/extensions/stable-diffusion/index.js+1 -1
@@ -3752,7 +3752,7 @@ async function onImageSwiped({ message, element, direction }) {
3752 const generationType = message?.extra?.generationType ?? generationMode.FREE;3752 const generationType = message?.extra?.generationType ?? generationMode.FREE;
3753 const dimensions = setTypeSpecificDimensions(generationType);3753 const dimensions = setTypeSpecificDimensions(generationType);
3754 const originalSeed = extension_settings.sd.seed;3754 const originalSeed = extension_settings.sd.seed;
3755 extension_settings.sd.seed = Math.round(Math.random() * Number.MAX_SAFE_INTEGER);3755 extension_settings.sd.seed = Math.round(Math.random() * (Math.pow(2, 32) - 1));
3756 let imagePath = '';3756 let imagePath = '';
37573757
3758 try {3758 try {