From d04924b1ea8277831f45bd4476dab113cf4edc74 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 5 Aug 2025 00:20:21 +0200 Subject: [PATCH] use random.SystemRandom as random nr source (/dev/urandom) /dev/urandom is somewhat better than python's PRNG Change-Id: I6de38c14ac6dd55bc84d53974192509c18d02bfa --- pySim/esim/saip/param_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/esim/saip/param_source.py b/pySim/esim/saip/param_source.py index 7690ca99..00584006 100644 --- a/pySim/esim/saip/param_source.py +++ b/pySim/esim/saip/param_source.py @@ -125,7 +125,7 @@ class DecimalRangeSource(InputExpandingParamSource): return cls(num_digits=len(first_str), first_value=first_value, last_value=last_value) class RandomSourceMixin: - random_impl = random # TODO secure random source? + random_impl = random.SystemRandom() class RandomDigitSource(DecimalRangeSource, RandomSourceMixin): """return a different sequence of random decimal digits each"""