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

Never mind, docs say:
> The argument n specifies the length of the random length. The length of the result string is twice of n.