YYID ![[travis]](https://img.hex.pm/fetch/e24c2d0462ebdcc86000ca6837c2ac7d9f1807d9/68747470733a2f2f7472617669732d63692e6f72672f6a616e6c656c69732f797969642e65782e706e67)
Generates random tokens that look like type 4 UUIDs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
In contrast to RFC 4122, it uses all digits (128bit)
Source of randomness: :crypto.strong_rand_bytes
Install
Add to mix.exs:
defp deps do
[{:yyid, "~> 0.1"}]
endThen run in your shell:
$ mix deps.getUsage
YYID.new # => "e1d87f6e-fbd5-6801-9528-a1d568c1fd02"Also Available
- YYID for Ruby
- YYID for JavaScript
- YYID for Go