X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/3f387ec5d75ff85576e87649427cbdc1f14a95b8..9d6c41a8d4518ba851c9de7426abe49de0660077:/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):