fixes #5922 - compute resource #random_password to use SecureRandom()

Doesn't this reduce the length from 8 to 4?