Use LMS secret key to seed anonymizer

This commit is contained in:
kimth
2012-08-25 09:18:10 -04:00
parent f7c87aa7a1
commit 25ea8b2990

View File

@@ -175,7 +175,8 @@ def _get_module(user, request, location, student_module_cache, course_id, positi
return None
# Anonymized student identifier
h = hashlib.md5() # TODO: Seed with LMS secret key
h = hashlib.md5()
h.update(settings.SECRET_KEY)
h.update(str(user.id))
anonymous_student_id = h.hexdigest()