From c0db7b267ad314dda80081f361de7bca24411688 Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 6 Jan 2021 14:02:23 +0000 Subject: [PATCH] nga-python: fix random number generator (forgot to import random module) FossilOrigin-Name: 89b97f70b3f5ad1d1c9ed9d97cdb4fe99448a6b245611bc011fc4a66736ff345 --- vm/nga-python/RNGDevice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm/nga-python/RNGDevice.py b/vm/nga-python/RNGDevice.py index a938bb2..32a86e6 100644 --- a/vm/nga-python/RNGDevice.py +++ b/vm/nga-python/RNGDevice.py @@ -1,3 +1,5 @@ +import random + class RNG: def __call__(self): return random.randint(-2147483647, 2147483646)