Kaydet (Commit) de78b2ca authored tarafından Caolán McNamara's avatar Caolán McNamara

when size_t == unsigned int

Change-Id: If8cd3632d69f6456b0e1351efac0e428e0093e3b
üst 2c6d17b0
......@@ -66,6 +66,8 @@ unsigned int uniform_int_distribution(unsigned int a, unsigned int b)
return dist(theRandomNumberGenerator::get().global_rng);
}
#if SAL_TYPES_SIZEOFLONG == 8
// uniform size_t [a,b] distribution
size_t uniform_int_distribution(size_t a, size_t b)
{
......@@ -73,6 +75,8 @@ size_t uniform_int_distribution(size_t a, size_t b)
return dist(theRandomNumberGenerator::get().global_rng);
}
#endif
// uniform size_t [a,b) distribution
double uniform_real_distribution(double a, double b)
{
......
......@@ -34,9 +34,13 @@ COMPHELPER_DLLPUBLIC int uniform_int_distribution(int a, int b);
/// uniform distribution in [a,b]
COMPHELPER_DLLPUBLIC unsigned int uniform_int_distribution(unsigned int a, unsigned int b);
#if SAL_TYPES_SIZEOFLONG == 8
/// uniform distribution in [a,b]
COMPHELPER_DLLPUBLIC size_t uniform_int_distribution(size_t a, size_t b);
#endif
} // namespace
} // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment