diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-02-24 09:51:16 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-02-24 09:51:16 -0500 |
commit | 50cce609050e1a40e1d6936e0a3f0614b4483eee (patch) | |
tree | bdcd3399ee0c2fc5352ec8b008499a91ee08a422 /core/src/fxcrt/fx_extension.cpp | |
parent | a7f70cc1ff7d54b92d9c55326c1439a25116e00c (diff) | |
download | pdfium-50cce609050e1a40e1d6936e0a3f0614b4483eee.tar.xz |
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 .
Diffstat (limited to 'core/src/fxcrt/fx_extension.cpp')
-rw-r--r-- | core/src/fxcrt/fx_extension.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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) { |