From b74f9184d2b175b10d7796930155c9d08f9c0a74 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sun, 28 May 2023 13:35:33 -0700 Subject: [PATCH] use secrets, Python hasn't turned off this foot gun yet.. --- shamirss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shamirss.py b/shamirss.py index f75492c..f090159 100644 --- a/shamirss.py +++ b/shamirss.py @@ -24,9 +24,11 @@ import functools import operator -import random +import secrets import unittest.mock +random = secrets.SystemRandom() + def _makered(x, y): '''Make reduction table entry.