diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 13:45:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-07 14:21:16 +0100 |
commit | fb6d3b883bfcd8de73d4426cc68ed6a7cc9e773a (patch) | |
tree | c136bf85c72aba4a8273c6e666775b4819c4c5cd /include/comphelper | |
parent | 75a23240d6ac090305f18ca93094ce2739eb8646 (diff) |
disambiguate uniform_int_distribution
Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/random.hxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/comphelper/random.hxx b/include/comphelper/random.hxx index 7c149fbe8cd9..3b1fabb3f7aa 100644 --- a/include/comphelper/random.hxx +++ b/include/comphelper/random.hxx @@ -32,14 +32,10 @@ COMPHELPER_DLLPUBLIC double uniform_real_distribution(double a = 0.0, double b = 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 +COMPHELPER_DLLPUBLIC unsigned int uniform_uint_distribution(unsigned int a, unsigned int b); /// uniform distribution in [a,b] -COMPHELPER_DLLPUBLIC size_t uniform_int_distribution(size_t a, size_t b); - -#endif +COMPHELPER_DLLPUBLIC size_t uniform_size_distribution(size_t a, size_t b); } // namespace |