[ruby-core:64074] [ruby-trunk - Bug #10093] SecureRandom.uuid is unstable

From: thanhman.gm@...
Date: 2014-07-27 10:49:59 UTC
List: ruby-core #64074
Issue #10093 has been updated by Man Vuong.


Valid UUID should match `/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i`

----------------------------------------
Bug #10093: SecureRandom.uuid is unstable
https://bugs.ruby-lang.org/issues/10093#change-48084

* Author: Man Vuong
* Status: Open
* Priority: Normal
* Assignee: 
* Category: lib
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
* 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/

In This Thread

Prev Next