Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
de78b2ca
Kaydet (Commit)
de78b2ca
authored
Eki 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
when size_t == unsigned int
Change-Id: If8cd3632d69f6456b0e1351efac0e428e0093e3b
üst
2c6d17b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
random.cxx
comphelper/source/misc/random.cxx
+4
-0
random.hxx
include/comphelper/random.hxx
+4
-0
No files found.
comphelper/source/misc/random.cxx
Dosyayı görüntüle @
de78b2ca
...
...
@@ -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
)
{
...
...
include/comphelper/random.hxx
Dosyayı görüntüle @
de78b2ca
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment