diff --git a/REST/app.py b/REST/app.py index ea47dc3..b606c2e 100644 --- a/REST/app.py +++ b/REST/app.py @@ -25,9 +25,9 @@ def initialize_generator(): if result is True: initialized = True return create_response(200, 'Successful operation; random number generator is ready and random numbers can be requested') - if random_numbers == 400: + if result == 400: return create_response(500, 'Tests failed, try again') - if random_numbers is False: + if result is False: return create_response(500, 'Unable to generate random numbers. Restart/Reset System') else: return create_response(555, 'Unable to initialize the random number generator within a timeout of 60 seconds')