Comments (3)
@louiscb quickrand
and uuid
should be treated as separate Erlang/OTP applications, so it is best to not add to the uuid
Erlang module with quickrand
initialization details. If more information is added to the README file, that would help people avoid any problems (there is already info about quickrand:seed/0
in the current README). Feel free to do a pull request with a README addition for quickrand_cache
initialization details.
from uuid.
Ok. What's the intended use case of the cached v4? Since we have to do the quickrand initialisation per process, it adds a lot of overhead and increases the execution time of the uuid generation massively.
from uuid.
I added a description in quickrand_cache
for its usage.
https://github.com/okeuday/quickrand/blob/2e82140b30bbf548726f98b836bc469cabcfb075/src/quickrand_cache.erl#L7-L18
I also modified the README change to provide more details.
The usage of quickrand_cache
would want the cached random data to stick around a long time, so the Erlang process should be long-lived if the init
function is used. Otherwise, you should be using the new
function as described in the new README info.
from uuid.
Related Issues (20)
- uuid:get_v4_urandom() always returns these results the first four times it is called HOT 1
- Doesn't build on Erlang 18 HOT 2
- exit(badarg) is confusing and non-standard? HOT 7
- R19 crypto error HOT 1
- Usage example? HOT 2
- Generate state once per app or once per process HOT 6
- warning_as_errors needs to be overridden when uuid is a dependency HOT 5
- Using master branch instead of v1.7.2 causes compile failure HOT 1
- Correctness of clock sequence handling in uuid v1 generation HOT 1
- is_uuid doesn't handle nil HOT 1
- Pid format change in Erlang/OTP 23 HOT 4
- Can't be built with erlang.mk on OTP-20 HOT 3
- Timeuuid Version 1 is not valid HOT 1
- Running out of file descriptors... HOT 6
- Not an issue but a question to use with Elixir HOT 1
- UUIDv1 generation is incorrect HOT 2
- Release Tag HOT 2
- variant bits are incorrect HOT 1
- Use just versions just like `0.0.1` and `1.2.3` in the branch tags. HOT 4
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 uuid.