parent
f0e0813414
commit
48d201f964
|
@ -51,6 +51,7 @@ def get_random_numbers():
|
||||||
if not initialized:
|
if not initialized:
|
||||||
return create_response(432, 'System not ready; try init')
|
return create_response(432, 'System not ready; try init')
|
||||||
|
|
||||||
|
with lock: # Sperre (Lock) verwenden, um sicherzustellen, dass nur ein Thread die Methode ausführt
|
||||||
random_numbers = analyze_data(int(quantity), int(bits), startup=False)
|
random_numbers = analyze_data(int(quantity), int(bits), startup=False)
|
||||||
|
|
||||||
if random_numbers == 400:
|
if random_numbers == 400:
|
||||||
|
|
Loading…
Reference in New Issue