rollbar / rollbar/rollbar-php

Hash collision generating the UUID4

Open
#476 5 comments 3 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.