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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding NYC
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: