Skip to content

Commit 7920e3e

Browse files
committed
fix: codeql check
1 parent d54359d commit 7920e3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xmodule/capa_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2507,7 +2507,7 @@ def randomization_bin(seed, problem_id):
25072507
interesting. To avoid having sets of students that always get the same problems,
25082508
we'll combine the system's per-student seed with the problem id in picking the bin.
25092509
"""
2510-
r_hash = hashlib.sha1()
2510+
r_hash = hashlib.sha256()
25112511
r_hash.update(str(seed).encode())
25122512
r_hash.update(str(problem_id).encode())
25132513
# get the first few digits of the hash, convert to an int, then mod.

0 commit comments

Comments
 (0)