diff options
author | ilezhankin <ilezhankin@yandex-team.ru> | 2022-02-10 16:45:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:55 +0300 |
commit | 1d125034f06575234f83f24f08677955133f140e (patch) | |
tree | ec05fbbd61dc118d5de37f206ab978cff58774bd /util/random/entropy.cpp | |
parent | 3a7a498715ef1b66f5054455421b845e45e3a653 (diff) | |
download | ydb-1d125034f06575234f83f24f08677955133f140e.tar.gz |
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/entropy.cpp')
-rw-r--r-- | util/random/entropy.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/random/entropy.cpp b/util/random/entropy.cpp index 3617edb83d7..5b7da84f56d 100644 --- a/util/random/entropy.cpp +++ b/util/random/entropy.cpp @@ -177,25 +177,25 @@ namespace { }; struct TDefaultTraits { - THolder<TEntropyPoolStream> EP; + THolder<TEntropyPoolStream> EP; TSeedStream SS; inline TDefaultTraits() { - Reset(); + Reset(); } inline IInputStream& EntropyPool() noexcept { - return *EP; + return *EP; } inline IInputStream& Seed() noexcept { return SS; } - inline void Reset() noexcept { - EP.Reset(new TEntropyPoolStream(THostEntropy())); - } - + inline void Reset() noexcept { + EP.Reset(new TEntropyPoolStream(THostEntropy())); + } + static inline TDefaultTraits& Instance() { auto res = SingletonWithPriority<TDefaultTraits, 0>(); @@ -216,6 +216,6 @@ IInputStream& Seed() { return TRandomTraits::Instance().Seed(); } -void ResetEntropyPool() { - TRandomTraits::Instance().Reset(); +void ResetEntropyPool() { + TRandomTraits::Instance().Reset(); } |