Skip to content

Commit 4403503

Browse files
committed
set random range for seed
1 parent 5d0cfc9 commit 4403503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

koboldcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ def sd_generate(genparams):
15661566
height = tryparseint(genparams.get("height", 512),512)
15671567
seed = tryparseint(genparams.get("seed", -1),-1)
15681568
if seed < 0:
1569-
seed = random.randint(0, 2**32-1)
1569+
seed = random.randint(100000, 999999)
15701570
sample_method = genparams.get("sampler_name", "k_euler_a")
15711571
clip_skip = tryparseint(genparams.get("clip_skip", -1),-1)
15721572

0 commit comments

Comments
 (0)