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

updated to SecureRandom.hex(8) instead of `hex(4)` which is long 16 alphanumeric characters. Can't use `SecureRandom.base64` since vmware doesn't allow non-alphanumeric characters as a password. thanks @eLobato