Project

yyid

0.0
No release in over 3 years
Low commit activity in last 3 years
Generates tokens that look like type 4 UUID, but are more random.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 0.8
>= 0
~> 2.4
 Project Readme

YYID for Ruby [version] [ci]

  • Generates a random string in UUID#4 format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  • In contrast to RFC 4122, it uses all digits (128bit)
  • Uses a crytographically solid source of randomness: SecureRandom

Install

$ gem install yyid

Usage

require 'yyid'
YYID.new #=> "9a4161c6-7742-b6ea-301a-d1e5e1df151d"

Other Versions

YYID is available for more languages, such as JavaScript, Elixir, or Rust.