X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/010b648653d39191fb25b93424d408a95289826e..433c2681ac4fea560f5b1ac3dc372353907a50b0:/wtem/models.py diff --git a/wtem/models.py b/wtem/models.py index 6440e70..fbf0928 100644 --- a/wtem/models.py +++ b/wtem/models.py @@ -96,8 +96,8 @@ class Submission(models.Model): def shuffled_exercise_ids(self): exercise_ids = [e['id'] for e in exercises] - random.seed(self.random_seed) - random.shuffle(exercise_ids) + seeded_random = random.Random(self.random_seed) + seeded_random.shuffle(exercise_ids) return exercise_ids def current_exercise(self):