[SERVER-36636] std::uniform_int_distribution does not accept uint8_t as type parameter Created: 14/Aug/18  Updated: 29/Oct/23  Resolved: 14/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-08-27
Participants:
Linked BF Score: 0

 Description   

As noted in cppreference:

The effect is undefined if this is not one of short, int, long, long long, unsigned short, unsigned int, unsigned long, or unsigned long long.



 Comments   
Comment by Githook User [ 14/Aug/18 ]

Author:

{'name': 'Xiangyu Yao', 'email': 'xiangyu.yao@mongodb.com', 'username': 'xy24'}

Message: SERVER-36636 Avoid using uint8_t as type parameter for std::uniform_int_distribution
Branch: master
https://github.com/mongodb/mongo/commit/ef5175406c219755ad7e9fbf3d707bbba9d1420a

Generated at Thu Feb 08 04:43:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.