aboutsummaryrefslogtreecommitdiffstats
path: root/util/random
diff options
context:
space:
mode:
authordmasloff <dmasloff@yandex-team.com>2024-08-17 23:33:42 +0300
committerdmasloff <dmasloff@yandex-team.com>2024-08-17 23:43:45 +0300
commit69340f4614e853b9319df4b454ab7497711ee3cd (patch)
tree9902a3e2f58fe0bd9a157e7b51ad1cc52efa5744 /util/random
parenta905b53ec410defd5d2c40031ef8b34bb50a29f8 (diff)
downloadydb-69340f4614e853b9319df4b454ab7497711ee3cd.tar.gz
Set SpacesInLineCommentPrefix to 1 in /util
Set SpacesInLineCommentPrefix to 1 in /util 3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
Diffstat (limited to 'util/random')
-rw-r--r--util/random/common_ops.h2
-rw-r--r--util/random/entropy.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/util/random/common_ops.h b/util/random/common_ops.h
index 209e8dbb48..bdfabce2ab 100644
--- a/util/random/common_ops.h
+++ b/util/random/common_ops.h
@@ -115,7 +115,7 @@ struct TCommonRNG {
return ::NPrivate::ToRandReal4(Engine().GenRand64());
}
- //compatibility stuff
+ // compatibility stuff
inline TResult operator()() noexcept {
return Engine().GenRand();
}
diff --git a/util/random/entropy.cpp b/util/random/entropy.cpp
index 3617edb83d..0fec636e75 100644
--- a/util/random/entropy.cpp
+++ b/util/random/entropy.cpp
@@ -53,7 +53,7 @@ namespace {
try {
Save(&out, GetExecPath());
} catch (...) {
- //workaround - sometimes fails on FreeBSD
+ // workaround - sometimes fails on FreeBSD
}
Save(&out, (size_t)Data());
@@ -93,7 +93,7 @@ namespace {
{
TMemoryOutput out(Data(), Size());
- //replace zlib header with hash
+ // replace zlib header with hash
Save(&out, CityHash64(Data(), Size()));
}
@@ -101,7 +101,7 @@ namespace {
}
};
- //not thread-safe
+ // not thread-safe
class TMersenneInput: public IInputStream {
using TKey = ui64;
using TRnd = TMersenne<TKey>;