Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UUID component #219

Open
peter279k opened this issue Apr 30, 2019 · 4 comments
Open

Add UUID component #219

peter279k opened this issue Apr 30, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request Feature Request Proposal New idea/proposal

Comments

@peter279k
Copy link
Member

peter279k commented Apr 30, 2019

Is your feature request related to a problem? Please describe.

I'm not sure we have to provide this component by dafault on our Zest framework.

Describe the solution you'd like

We can look at the ramsey/uuid to know more details about UUID.

And this official uniqid function reference can also let us know UUID.

@lablnet
Copy link
Member

lablnet commented Apr 30, 2019

Yes i was thinking before, its should be part of Zest Framework, its good if you could send PR
what do you think @peter279k

@lablnet lablnet added enhancement New feature or request Feature Request Proposal New idea/proposal labels Apr 30, 2019
@peter279k
Copy link
Member Author

Thanks @lablnet, and I also have the similar issue on this :).

@lablnet
Copy link
Member

lablnet commented Aug 1, 2019

I have following approach in my mind

  1. Generate random characters 10 or 15 by using salts method from Site class.
  2. Generating random number from 100000 to 1000000 and then multiply by it time().
  3. Then concatenate those and shuffle it.
  4. For providing additional sticky rule we can make optional feature allow user to validate it, like when ever it generate UUID we can append it to json, and verify it either already exist or not if so, do it again.... but this will be optional

What do you think @peter279k

@peter279k
Copy link
Member Author

@lablnet, thanks for your reply.

The UUID means the unique ID value.

It's also a random value, this generation has the standard defined by RFC-4122.

It's also have the implementation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature Request Proposal New idea/proposal
Projects
None yet
Development

No branches or pull requests

2 participants