[CDRIVER-420] c driver calls rand() Created: 15/Sep/14  Updated: 19/Oct/16  Resolved: 27/Oct/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: 1.0.2

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The c driver calls rand() from mongoc-cluster.c and mongoc-client.c Neither of these objects are globally unique and locked, so we're racing. Switch to rand_r



 Comments   
Comment by Mira Carey [ 22/Sep/14 ]

https://github.com/hanumantmk/libmongoc/compare/hanumantmk:scram...CDRIVER-420?expand=1

Generated at Wed Feb 07 21:09:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.