Module: RbNaCl::Random
- Extended by:
- Sodium
- Defined in:
- lib/rbnacl/random.rb
Overview
Functions for random number generation
This uses the underlying source of random number generation on the OS, so /dev/urandom on UNIX-like systems, and the MS crypto providor on windows.
Class Method Summary collapse
-
.random_bytes(n = 32) ⇒ String
Returns a string of random bytes.
Methods included from Sodium
primitive, sodium_constant, sodium_function, sodium_function_with_return_code, sodium_primitive, sodium_type