method
random_bytes
v2_2_9 -
Show latest stable
- Class:
OpenSSL::Random
random_bytes(p1)public
Generates string with length number of cryptographically strong pseudo-random bytes.
Example: OpenSSL::Random.random_bytes(12) => "..."
random_bytes(p1)Generates string with length number of cryptographically strong pseudo-random bytes.
Example: OpenSSL::Random.random_bytes(12) => "..."