aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/random_provider/random_provider.cpp
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/random_provider/random_provider.cpp
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/random_provider/random_provider.cpp')
-rw-r--r--library/cpp/random_provider/random_provider.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/random_provider/random_provider.cpp b/library/cpp/random_provider/random_provider.cpp
index 64cb48b8b7..1f04e36834 100644
--- a/library/cpp/random_provider/random_provider.cpp
+++ b/library/cpp/random_provider/random_provider.cpp
@@ -1,7 +1,7 @@
#include "random_provider.h"
#include <util/random/mersenne.h>
#include <util/random/random.h>
-#include <util/system/unaligned_mem.h>
+#include <util/system/unaligned_mem.h>
namespace {
void SetV4(TGUID& g) {
@@ -47,7 +47,7 @@ public:
TGUID GenGuid() noexcept override {
TGUID ret;
- WriteUnaligned<ui64>(ret.dw, Gen.GenRand());
+ WriteUnaligned<ui64>(ret.dw, Gen.GenRand());
ret.dw[2] = (ui32)Gen.GenRand();
ret.dw[3] = ++GuidCount;
return ret;
@@ -55,8 +55,8 @@ public:
TGUID GenUuid4() noexcept override {
TGUID ret;
- WriteUnaligned<ui64>(ret.dw, Gen.GenRand());
- WriteUnaligned<ui64>(ret.dw + 2, Gen.GenRand());
+ WriteUnaligned<ui64>(ret.dw, Gen.GenRand());
+ WriteUnaligned<ui64>(ret.dw + 2, Gen.GenRand());
SetV4(ret);
return ret;
}