Open sinbadxiii opened 1 year ago
nice !
added version 6
//version 6
$random->uuid6(); //1ede4ea1-7725-6670-916f-f9e288af019f
$random->uuid6(); //1ede4ea1-7725-6770-be3c-f9e288af019f
$random->uuid6(); //1ede4ea1-7725-67e0-8837-f9e288af019f
...
$random->uuid6(); //1ede4eac-294b-6fe0-bedf-313f2e13333a
$random->uuid6(); //1ede4eac-294c-6120-a6fb-313f2e13333a
$random->uuid6(); //1ede4eac-294c-61a0-9490-313f2e13333a
I think we need to add this to the framework.
@sinbadxiii if you are OK with it to merge it, we can get a PR going, alternatively it can be a package on its own.
@sinbadxiii if you are OK with it to merge it, we can get a PR going, alternatively it can be a package on its own.
ok, thanks!
I want to add versions 7-8 and run more tests and then I will prepare PR
Hi guys!
Here I rewrote
Random
lib a bit for generate UUID. The generator allows you to get uuid version 1-5 (6,7,8 in developing). This will also close the task https://github.com/phalcon/cphalcon/issues/14608#issuecomment-618686517 and https://github.com/phalcon/cphalcon/issues/14955Prototype is here https://github.com/sinbadxiii/cphalcon-uuid
For example:
We can discuss controversial points and I think to do a PR.
How do you think?