refactor(*): make type alias identifiers conform to the style for general type identifiers
This commit is contained in:
1 parent
d2b6e0c669
commit
312cfe4097
54 files changed
+1738
-1698
No files matched your search
@@ -10,15 +10,15 @@ NAMESPACE_BEGIN(Math)
|
||||
|
||||
NAMESPACE_UNNAMED_BEGIN
|
||||
|
||||
TAtomic<uint32> RandState = 586103306;
|
||||
TAtomic<uint32> GRandState = 586103306;
|
||||
|
||||
NAMESPACE_UNNAMED_END
|
||||
|
||||
uint32 Seed(uint32 InSeed)
|
||||
{
|
||||
uint32 OldSeed = RandState.Load(EMemoryOrder::Relaxed);
|
||||
uint32 OldSeed = GRandState.Load(EMemoryOrder::Relaxed);
|
||||
|
||||
if (InSeed != 0) RandState.Store(InSeed, EMemoryOrder::Relaxed);
|
||||
if (InSeed != 0) GRandState.Store(InSeed, EMemoryOrder::Relaxed);
|
||||
|
||||
return OldSeed;
|
||||
}
|
||||
@@ -27,7 +27,7 @@ uint32 Rand()
|
||||
{
|
||||
uint32 Result;
|
||||
|
||||
RandState.FetchFn(
|
||||
GRandState.FetchFn(
|
||||
[&Result](uint32 Value)
|
||||
{
|
||||
Result = Value;
|
||||
|
||||
Reference in new issue
Block a user