hopefully fix a horrible seed reproducibility bug
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user