Index: core/src/fxcrt/fx_extension.cpp |
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp |
index cae1763c7ee573796287f0b4b1986c8f8572dffb..30ab2c35220844d8bb28f5a27535981ca27ff563 100644 |
--- a/core/src/fxcrt/fx_extension.cpp |
+++ b/core/src/fxcrt/fx_extension.cpp |
@@ -333,8 +333,9 @@ void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount) { |
::srand((dwHash1 << 16) | (FX_DWORD)dwHash2); |
#else |
time_t tmLast = time(NULL), tmCur; |
Tom Sepez
2016/02/23 17:44:18
nit: one per line.
dsinclair
2016/02/23 19:14:01
Done.
|
- while ((tmCur = time(NULL)) == tmLast) |
- ; |
+ while ((tmCur = time(NULL)) == tmLast) { |
Tom Sepez
2016/02/23 17:44:18
nit: my personal preference is to use "continue" f
dsinclair
2016/02/23 19:14:01
Done.
|
+ } |
+ |
::srand((tmCur << 16) | (tmLast & 0xFFFF)); |
#endif |
while (iCount-- > 0) { |