Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::SecureRandom

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

These similar methods exist in v6.1.7.7:

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.