[SERVER-72374] Replace `std::rand` usages in query analyzer code path Created: 22/Dec/22  Updated: 04/Jan/23  Resolved: 04/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-72373 Ban `rand` Closed
Assigned Teams:
Sharding NYC
Participants:

 Description   

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.



 Comments   
Comment by Billy Donahue [ 04/Jan/23 ]

These were resolved as part of server-wide removal of std::rand in SERVER-72373.

Generated at Thu Feb 08 06:21:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.