hopefully fix a horrible seed reproducibility bug

This commit is contained in:
6f4T7y9Q
2026-02-12 17:33:07 +01:00
committed by GitHub
parent c9f0b4fba9
commit eea5c2dcaf
+2 -2
View File
@@ -38,7 +38,7 @@ class InlineWildcardGenerator:
rng = random.Random(seed)
if random_mix:
count_to_pick = min(len(options), random.randint(1, mix_count))
count_to_pick = min(len(options), rng.randint(1, mix_count))
else:
count_to_pick = min(len(options), mix_count)
@@ -86,4 +86,4 @@ NODE_CLASS_MAPPINGS = {
NODE_DISPLAY_NAME_MAPPINGS = {
"InlineWildcardGenerator": "Define Inline Wildcard",
"WildcardPromptBuilder": "Build Prompt from Wildcards"
}
}