aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/random.cpp
diff options
context:
space:
mode:
authorilezhankin <ilezhankin@yandex-team.ru>2022-02-10 16:45:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:56 +0300
commit62a805381e41500fbc7914c37c71ab040a098f4e (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/random/random.cpp
parent1d125034f06575234f83f24f08677955133f140e (diff)
downloadydb-62a805381e41500fbc7914c37c71ab040a098f4e.tar.gz
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/random/random.cpp')
-rw-r--r--util/random/random.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/random/random.cpp b/util/random/random.cpp
index 8c9f6bec77..71f9323856 100644
--- a/util/random/random.cpp
+++ b/util/random/random.cpp
@@ -86,8 +86,8 @@ DEF_RND(unsigned long)
DEF_RND(unsigned short)
DEF_RND(unsigned long long)
-#undef DEF_RND
-
+#undef DEF_RND
+
template <>
bool RandomNumber<bool>() {
return RandomNumber<ui8>() % 2 == 0;
@@ -113,11 +113,11 @@ template <>
long double RandomNumber<long double>() {
return RandomNumber<double>();
}
-
-void ResetRandomState() {
- *GetRndGen<ui32>() = TRndGen<ui32>();
- *GetRndGen<ui64>() = TRndGen<ui64>();
-}
+
+void ResetRandomState() {
+ *GetRndGen<ui32>() = TRndGen<ui32>();
+ *GetRndGen<ui64>() = TRndGen<ui64>();
+}
void SetRandomSeed(int seed) {
*GetRndGen<ui32>() = TRndGen<ui32>(seed);