diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/random | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random')
-rw-r--r-- | util/random/entropy.cpp | 2 | ||||
-rw-r--r-- | util/random/normal_ut.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/util/random/entropy.cpp b/util/random/entropy.cpp index 3617edb83d..c3ae7a1718 100644 --- a/util/random/entropy.cpp +++ b/util/random/entropy.cpp @@ -160,7 +160,7 @@ namespace { #define DO_STEP(type) \ while (len >= sizeof(type)) { \ - WriteUnaligned<type>(buf, RandomNumber<type>()); \ + WriteUnaligned<type>(buf, RandomNumber<type>()); \ buf += sizeof(type); \ len -= sizeof(type); \ } diff --git a/util/random/normal_ut.cpp b/util/random/normal_ut.cpp index 42b6cc4ba2..8968f9e571 100644 --- a/util/random/normal_ut.cpp +++ b/util/random/normal_ut.cpp @@ -31,13 +31,13 @@ Y_UNIT_TEST_SUITE(TestNormalDistribution) { mm += x; } - mm /= v.size(); + mm /= v.size(); for (auto x : v) { vv += (mm - x) * (mm - x); } - vv /= v.size(); + vv /= v.size(); long double dd = std::sqrt(vv); |