GithubHelp home page GithubHelp logo

Crypto warning when compiling about elixir-uuid HOT 2 OPEN

zyro avatar zyro commented on June 19, 2024 8
Crypto warning when compiling

from elixir-uuid.

Comments (2)

Hentioe avatar Hentioe commented on June 19, 2024 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.

louiscb avatar louiscb commented on June 19, 2024 1

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.