SIGN IN SIGN UP

Issue #15340: Fix importing the random module when /dev/urandom cannot be opened.

This was a regression caused by the hash randomization patch.
A
Antoine Pitrou committed
8c195afcace7bfb3cc6a198718f435363aecbc21