aboutsummaryrefslogtreecommitdiffstats
path: root/util/random
diff options
context:
space:
mode:
authormikari <mikari@yandex-team.ru>2022-02-10 16:48:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:47 +0300
commit2e0ed5ad2d70bf924ccd3cbbfab508784ab36325 (patch)
treec407f44de8fd4579bf0ceffc822d243ff76cfd26 /util/random
parentab32245a89d56835833808c7e644b3da277d7085 (diff)
downloadydb-2e0ed5ad2d70bf924ccd3cbbfab508784ab36325.tar.gz
Restoring authorship annotation for <mikari@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random')
-rw-r--r--util/random/shuffle.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/random/shuffle.h b/util/random/shuffle.h
index 274ac147c9..a41bae998a 100644
--- a/util/random/shuffle.h
+++ b/util/random/shuffle.h
@@ -27,17 +27,17 @@ inline void Shuffle(TRandIter begin, TRandIterEnd end, TRandGen&& gen) {
DoSwap(*(begin + i), *(begin + gen.Uniform(i + 1)));
}
}
-
-template <typename TRange>
-inline void ShuffleRange(TRange& range) {
+
+template <typename TRange>
+inline void ShuffleRange(TRange& range) {
auto b = range.begin();
Shuffle(b, range.end());
-}
-
-template <typename TRange, typename TRandGen>
-inline void ShuffleRange(TRange& range, TRandGen&& gen) {
+}
+
+template <typename TRange, typename TRandGen>
+inline void ShuffleRange(TRange& range, TRandGen&& gen) {
auto b = range.begin();
Shuffle(b, range.end(), gen);
-}
+}