From f8aa78d370b07075f8b0ecc0d154d8eab718c658 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 3c6c80f4..53d5d29a 100644 --- a/pySim/esim/saip/param_source.py +++ b/pySim/esim/saip/param_source.py @@ -121,7 +121,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"""