diff --git a/REST/old/app.py b/REST/old/app.py index 0d25889..ddd96db 100644 --- a/REST/old/app.py +++ b/REST/old/app.py @@ -50,7 +50,8 @@ def get_random_numbers(): if not initialized: 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) if random_numbers == 400: