From: normalperson@... Date: 2014-11-02T22:11:29+00:00 Subject: [ruby-core:66057] [ruby-trunk - Feature #4938] Add Random.bytes [patch] Issue #4938 has been updated by Eric Wong. Assignee changed from Eric Wong to Yukihiro Matsumoto Any comment from matz for API addition? ---------------------------------------- Feature #4938: Add Random.bytes [patch] https://bugs.ruby-lang.org/issues/4938#change-49778 * Author: Marc-Andre Lafortune * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto * 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 (2.38 KB) -- https://bugs.ruby-lang.org/