Library
Exercises
Games
Exams
Resources
Forum
News
Light
Log in
Sign up
Library
Exercises
Games
Exams
Resources
Forum
News
All courses
Library
Randomness in cryptography
Choosing the right generator
MCQ
You need to generate a session key in an application. What source do you use?
Possible answers
The standard library's rand() function, seeded with the current time
The system's cryptographic generator, such as getrandom() or crypto.getRandomValues()
A hash of the user's ID and the date
A long string of characters typed on the keyboard by the developer
Log in to reply
Exercise 1 of 4
Next exercise
Report a mistake or suggest an improvement