Issue #4938 has been updated by mrkn (Kenta Murata).

Target version changed from 2.0.0 to next minor

I think it is useful and acceptable to introduce, but 2.0 is already frozen about its features, so the target version should be next-minor.
----------------------------------------
Feature #4938: Add Random.bytes [patch]
https://bugs.ruby-lang.org/issues/4938#change-32806

Author: marcandre (Marc-Andre Lafortune)
Status: Assigned
Priority: Normal
Assignee: nobu (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.





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