diff options
Diffstat (limited to 'src/FastRandom.cpp')
-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; } |