Issue #4938 has been updated by Hiroshi SHIBATA.

File randombytes-ruby22.diff added

I update this patch on Ruby 2.2.

----------------------------------------
Feature #4938: Add Random.bytes [patch]
https://bugs.ruby-lang.org/issues/4938#change-49402

* Author: Marc-Andre Lafortune
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: next minor
----------------------------------------
It could be useful to add a `Random.bytes` method (equivalent to `Random::DEFAULT.bytes`), as per the simple patch attached.




---Files--------------------------------
randombytes.diff (2.19 KB)
randombytes-ruby22.diff (1008 Bytes)


-- 
https://bugs.ruby-lang.org/