Changeset 87239 in vbox
- Timestamp:
- Jan 13, 2021 1:43:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/testcase/tstVD.cpp
r85121 r87239 23 23 #include <iprt/errcore.h> 24 24 #include <VBox/log.h> 25 #include <iprt/asm-amd64-x86.h> 25 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 26 # include <iprt/asm-amd64-x86.h> 27 #endif 26 28 #include <iprt/dir.h> 27 29 #include <iprt/string.h> … … 244 246 { 245 247 if (u32Seed == 0) 248 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 246 249 u32Seed = (uint32_t)(ASMReadTSC() >> 8); 250 #else 251 u32Seed = (uint32_t)(RTTimeNanoTS() >> 19); 252 #endif 247 253 /* Zero is not a good seed. */ 248 254 if (u32Seed == 0)
Note:
See TracChangeset
for help on using the changeset viewer.