[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: |
|
||||||||
| 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 |
| Comments |
| Comment by Billy Donahue [ 04/Jan/23 ] |
|
These were resolved as part of server-wide removal of std::rand in |