Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55218

uniqid() is not guarantee uniqueness under windows and should be avoided.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.9.7, 3.1.1
    • None
    • Libraries
    • None
    • MOODLE_29_STABLE, MOODLE_31_STABLE

    Description

      While working on MDL-54977, it was observed that uniqid() does not guarantee uniqueness under windows. We should use html_writer::random_id() instead.

      Reference:
      https://bugs.php.net/bug.php?id=65626
      http://grokbase.com/t/php/php-internals/1428sq0zp3/uniqid-is-not-unique-under-windows

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rajeshtaneja Rajesh Taneja
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: