Change seed reroll formula for Drawthings

Fixes #2770
This commit is contained in:
Cohee 2024-09-04 20:57:31 +03:00
parent 642b409c0f
commit 14d6fa1129
1 changed files with 1 additions and 1 deletions

View File

@ -3752,7 +3752,7 @@ async function onImageSwiped({ message, element, direction }) {
const generationType = message?.extra?.generationType ?? generationMode.FREE;
const dimensions = setTypeSpecificDimensions(generationType);
const originalSeed = extension_settings.sd.seed;
extension_settings.sd.seed = Math.round(Math.random() * Number.MAX_SAFE_INTEGER);
extension_settings.sd.seed = Math.round(Math.random() * (Math.pow(2, 32) - 1));
let imagePath = '';
try {