aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/easy.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/random/easy.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/easy.h')
-rw-r--r--util/random/easy.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/util/random/easy.h b/util/random/easy.h
index fd5b826fbe..80c5f7099a 100644
--- a/util/random/easy.h
+++ b/util/random/easy.h
@@ -1,47 +1,47 @@
-#pragma once
-
-#include "random.h"
-
-namespace NPrivate {
- struct TRandom {
- inline operator unsigned char() {
- return RandomNumber<unsigned char>();
- }
-
- inline operator unsigned short() {
- return RandomNumber<unsigned short>();
- }
-
- inline operator unsigned int() {
- return RandomNumber<unsigned int>();
- }
-
- inline operator unsigned long() {
- return RandomNumber<unsigned long>();
- }
-
- inline operator unsigned long long() {
- return RandomNumber<unsigned long long>();
- }
-
- inline operator bool() {
- return RandomNumber<bool>();
- }
-
- inline operator float() {
- return RandomNumber<float>();
- }
-
- inline operator double() {
- return RandomNumber<double>();
- }
-
- inline operator long double() {
- return RandomNumber<long double>();
- }
- };
-}
-
+#pragma once
+
+#include "random.h"
+
+namespace NPrivate {
+ struct TRandom {
+ inline operator unsigned char() {
+ return RandomNumber<unsigned char>();
+ }
+
+ inline operator unsigned short() {
+ return RandomNumber<unsigned short>();
+ }
+
+ inline operator unsigned int() {
+ return RandomNumber<unsigned int>();
+ }
+
+ inline operator unsigned long() {
+ return RandomNumber<unsigned long>();
+ }
+
+ inline operator unsigned long long() {
+ return RandomNumber<unsigned long long>();
+ }
+
+ inline operator bool() {
+ return RandomNumber<bool>();
+ }
+
+ inline operator float() {
+ return RandomNumber<float>();
+ }
+
+ inline operator double() {
+ return RandomNumber<double>();
+ }
+
+ inline operator long double() {
+ return RandomNumber<long double>();
+ }
+ };
+}
+
static inline ::NPrivate::TRandom Random() noexcept {
- return {};
-}
+ return {};
+}