JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-561  -  JPPFUuid generates uuid collisions
Posted Nov 23, 2018 - updated Nov 23, 2018
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Core
  • Resolution
    RESOLVED
  • Priority
    High
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 6.0.1
Issue description
After seeing one failure of the TestJPPFUuid unit test (the only one I've seen in years), I performed some more rigorous testing of the uuids generated by JPPFUuid. I found that there is around 1 collision for every 40 million (40,000,000) uuids. Essentially, this is due to the use of a non cryptographically strong random number generator, namely java.util.Random. Instead, we should use java.security.SecureRandom.
Steps to reproduce this issue
Run the TestJPPFUuid unit test in a loop until a collision is detected