Project

General

Profile

Actions

Bug #18873

closed

Need to use thread safe random number generation (unless c++11 already provides this)

Added by David Zafman about 7 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
common
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
rand, random
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

We are using rand() throughout the code which man says isn't thread safe. We should determine if rand() with c++11 is thread safe or not. If it isn't use some other variant like rand_r(), boost? or c++11 features.

Actions

Also available in: Atom PDF