Flowdock
method

pseudo_bytes

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Random
pseudo_bytes(p1) public

Generates a String with length number of pseudo-random bytes.

Pseudo-random byte sequences generated by ::pseudo_bytes will be unique if they are of sufficient length, but are not necessarily unpredictable.

Example

OpenSSL::Random.pseudo_bytes(12)
#=> "..."
Show source
Register or log in to add new notes.