Question
A software company plans to use the standard random module in Python to generate session tokens for user login authentication.
A security expert advises against this, suggesting they should instead use a cryptographically secure random number generator (CSPRNG).
Evaluate the risks of using pseudo-random number generators for security-sensitive applications compared to CSPRNGs.
6 marks · take your time before peeking.
Sign up to try the next 30 problems
Save your streak, mark answers against the spec, and build a daily revision habit. Free during public beta — no card, no auto-renew.
Generated by TopMyGrade AI · cross-check official sources before relying on the mark-scheme phrasing.