From 50cce609050e1a40e1d6936e0a3f0614b4483eee Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 24 Feb 2016 09:51:16 -0500 Subject: Fixing whitespace lint errors. This CL enables several of the diabled whitelist/* lint checks. R=thestig@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/1730553002 . --- core/src/fxcrt/fx_extension.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'core/src/fxcrt/fx_extension.cpp') diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp index 456e6bd7f3..31f645ae0f 100644 --- a/core/src/fxcrt/fx_extension.cpp +++ b/core/src/fxcrt/fx_extension.cpp @@ -332,9 +332,12 @@ void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount) { FX_HashCode_String_GetA((const FX_CHAR*)&st2, sizeof(st2), TRUE); ::srand((dwHash1 << 16) | (FX_DWORD)dwHash2); #else - time_t tmLast = time(NULL), tmCur; - while ((tmCur = time(NULL)) == tmLast) - ; + time_t tmLast = time(NULL); + time_t tmCur; + while ((tmCur = time(NULL)) == tmLast) { + continue; + } + ::srand((tmCur << 16) | (tmLast & 0xFFFF)); #endif while (iCount-- > 0) { -- cgit v1.2.3