Hash collision generating the UUID4
Open
Nobody has claimed this yet.
Rank: 3 - Minor
Status: 2 - Accepted
Type: Enhancement
- Dominant language
- PHP
- Stars
- 337
- Forks
- 116
- Avg merge
- 17d 2h
- Merged PRs (30d)
- 1
Description
It looks like we are using a method to generate the UUID4 via this code - http://www.php.net/manual/en/function.uniqid.php#94959. This has caused UUID hash collision multiple times to the same customer. We need to look into a more standard way to generate the UUID4.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the UUID generation code referenced in the issue and the linked PHP uniqid documentation. Determine where UUID4 values are created and how collisions can be verified; done means replacing the collision-prone approach with a standard UUID4 method and confirming repeated generation does not reuse values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100