diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/random | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 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 c3ae7a1718..3617edb83d 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 8968f9e571..42b6cc4ba2 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); |