We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d54359d commit 7920e3eCopy full SHA for 7920e3e
1 file changed
xmodule/capa_block.py
@@ -2507,7 +2507,7 @@ def randomization_bin(seed, problem_id):
2507
interesting. To avoid having sets of students that always get the same problems,
2508
we'll combine the system's per-student seed with the problem id in picking the bin.
2509
"""
2510
- r_hash = hashlib.sha1()
+ r_hash = hashlib.sha256()
2511
r_hash.update(str(seed).encode())
2512
r_hash.update(str(problem_id).encode())
2513
# get the first few digits of the hash, convert to an int, then mod.
0 commit comments