diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/FastRandom.cpp | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to '')
-rw-r--r-- | src/FastRandom.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/FastRandom.cpp b/src/FastRandom.cpp index 0ba5fb64a..5f362a1db 100644 --- a/src/FastRandom.cpp +++ b/src/FastRandom.cpp @@ -12,10 +12,10 @@ MTRand & GetRandomProvider() { thread_local MTRand Random = [] - { - cRandomDeviceSeeder Seeder; - return MTRand(Seeder); - }(); + { + cRandomDeviceSeeder Seeder; + return MTRand(Seeder); + }(); return Random; } @@ -26,10 +26,10 @@ MTRand & GetRandomProvider() UInt32 Detail::GetRandomSeed() { thread_local UInt32 SeedCounter = [] - { - std::random_device rd; - std::uniform_int_distribution<UInt32> dist; - return dist(rd); - }(); + { + std::random_device rd; + std::uniform_int_distribution<UInt32> dist; + return dist(rd); + }(); return ++SeedCounter; } |