v3.0.9 - Show latest stable - 0 notes - Class: ActiveSupport::SecureRandom
hex(n=nil) public

SecureRandom.hex generates a random hex string.

The argument n specifies the length of the random length. The length of the result string is twice of n.

If n is not specified, 16 is assumed. It may be larger in future.

If secure random number generator is not available, NotImplementedError is raised.

Show source
Register or log in to add new notes.