diff options
author | ilezhankin <ilezhankin@yandex-team.ru> | 2022-02-10 16:45:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:56 +0300 |
commit | 62a805381e41500fbc7914c37c71ab040a098f4e (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/random/entropy.cpp | |
parent | 1d125034f06575234f83f24f08677955133f140e (diff) | |
download | ydb-62a805381e41500fbc7914c37c71ab040a098f4e.tar.gz |
Restoring authorship annotation for <ilezhankin@yandex-team.ru>. Commit 2 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 5b7da84f56d..3617edb83d7 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(); } |