Commit c3c75819 authored by gd1551's avatar gd1551 Committed by GitHub

fix random getstate call

parent 4e4791a7
......@@ -104,7 +104,7 @@ def sanitize_stable_diffusion(request, config):
return False, "sampler should be one of {}".format(samplers)
if request.seed is None:
state = random.getstate
state = random.getstate()
request.seed = random.randint(0, 2**32)
random.setstate(state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment