Comments (2)
This library has not been maintained for a long time, and no PRs have been merged. I recommend you to use the Erlang library https://github.com/okeuday/uuid.
Create a uuid like this:
iex> :uuid.get_v4() |> :uuid.uuid_to_string() |> List.to_string()
"17c2237c-144b-41bc-a872-a9d135678209"
from elixir-uuid.
For future users who want to start using the Erlang library I wanted to add a couple comments:
The following executes much faster than the built in :uuid string conversion as mentioned above.
:uuid.get_v4() |> Ecto.UUID.load()
If you're using uuid v3 and want backwards compatibility with elixir-uuid and the Erlang UUID then you need to use this method:
:uuid.get_v3_compat(<<0::128, data::binary>>)
from elixir-uuid.
Related Issues (20)
- Offer safe functions that return error tuples on failure instead of raising an exception HOT 3
- UUID.uuid1 fails on docker for mac beta
- Warnings with Erlang 19.0 HOT 2
- uuid1 issue on osx ? HOT 13
- Name collides with erlang UUID package HOT 4
- Why doesn't UUID version 5 give expected results? HOT 3
- UUID.valid?/2 HOT 1
- Instructions in the README don't show change in version and package-name HOT 1
- could not find an app file at "_build/prod/lib/uuid/ebin/uuid.app" HOT 5
- function UUID.uuid4/0 is undefined (module UUID is not available) HOT 3
- string_to_slug and vice versa
- could not find an app file at "_build/dev/lib/uuid/ebin/uuid.app". HOT 1
- uuid1/0 is slow because it gets the MAC address every time HOT 10
- UUID.info parses invalid uuid as valid HOT 1
- V6 UUID HOT 2
- New releases not available on hex.pm HOT 3
- What is this state of this project? HOT 11
- Add a note about the rename in the 1.1 documentation HOT 2
- Non-unique values for UUID.uuid4/0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixir-uuid.