[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 |