[ruby-core:81402] [Ruby trunk Bug#10093] SecureRandom.uuid is not valid v4 and/or RFC 4122

From: im@...
Date: 2017-05-26 21:31:34 UTC
List: ruby-core #81402
Issue #10093 has been updated by kulikov-im (Evgeniy Kulikov).


usa (Usaku NAKAMURA) wrote:
> Please do not reuse past tickets.

Open new issue https://bugs.ruby-lang.org/issues/13603

----------------------------------------
Bug #10093: SecureRandom.uuid is not valid v4 and/or RFC 4122
https://bugs.ruby-lang.org/issues/10093#change-65111

* Author: kidlab (Man Vuong)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Target version: 2.2.0
* ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
SecureRandom.uuid sometimes generates some value like this:
e7be09bb-e939-43db-9c20-dfad9c27fd3g

And it's not a valid UUID. This problem occurred randomly for me, I don't know how to reproduce :(



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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next