use random.SystemRandom as random nr source (/dev/urandom)

/dev/urandom is somewhat better than python's PRNG

Change-Id: I6de38c14ac6dd55bc84d53974192509c18d02bfa
This commit is contained in:
Neels Hofmeyr committed 2025-12-13 22:34:23 +01:00
1 parent c831b3c3c3
commit 4d555f4b8d
1 file changed
+1 -1
+1 -1
View File
@@ -94,7 +94,7 @@ class InputExpandingParamSource(ParamSource):
return cls(cls.expand_str(s))
class RandomSourceMixin:
random_impl = random # TODO secure random source?
random_impl = random.SystemRandom()
class RandomDigitSource(InputExpandingParamSource, RandomSourceMixin):
'return a different sequence of random decimal digits each'