VirtualBox

Changeset 87239 in vbox


Ignore:
Timestamp:
Jan 13, 2021 1:43:00 PM (4 years ago)
Author:
vboxsync
Message:

Storage: Adjusted tstVD. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/tstVD.cpp

    r85121 r87239  
    2323#include <iprt/errcore.h>
    2424#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
    2628#include <iprt/dir.h>
    2729#include <iprt/string.h>
     
    244246{
    245247    if (u32Seed == 0)
     248#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    246249        u32Seed = (uint32_t)(ASMReadTSC() >> 8);
     250#else
     251        u32Seed = (uint32_t)(RTTimeNanoTS() >> 19);
     252#endif
    247253    /* Zero is not a good seed. */
    248254    if (u32Seed == 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette