static function bytes($bytes = Constants::BYTES)
    {
        # Test the length for validity.
        Helpers::rangeCheck($bytes, Constants::BYTES_MAX, Constants::BYTES_MIN, 'Entropy', 'bytes');

        return \Sodium\randombytes_buf($bytes);
    }
static function bytes($bytes = Constants::BYTES)
    {
        # Test the length for validity.
        Helpers::rangeCheck($bytes, Constants::BYTES_MAX, Constants::BYTES_MIN, 'Entropy', 'bytes');

        return \Sodium\randombytes_buf($bytes);
    }
static function bytes ( $ bytes = Constants :: BYTES ) { # Test the length for validity. Helpers :: rangeCheck ( $ bytes , Constants :: BYTES_MAX , Constants :: BYTES_MIN , 'Entropy' , 'bytes' ) ; return \ Sodium \ randombytes_buf ( $ bytes ) ; }
Returns a string of random bytes to the client.

@param int $bytes Size of the string of bytes to be generated.
@return string
@throws Exceptions\InvalidTypeException
@throws Exceptions\OutOfRangeException
Returns a string of random bytes to the client .