Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72374

Replace `std::rand` usages in query analyzer code path

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding NYC

      The following usages of std::rand have been recently introduced on the query analyzer code path:

      And in some related unit tests.

      The use of std::rand is discouraged in production for the reasons pointed out in SERVER-72373 and does not provide real randomization in unit tests because of SERVER-72366.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: