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

@lzap, I change from `SecureRandom.hex(4)` to `SecureRandom.base64(6)` which is also 8 characters in length.