Index: /trunk/src/VBox/Runtime/testcase/tstRTMemWipe.cpp
===================================================================
--- /trunk/src/VBox/Runtime/testcase/tstRTMemWipe.cpp	(revision 41030)
+++ /trunk/src/VBox/Runtime/testcase/tstRTMemWipe.cpp	(revision 41031)
@@ -69,6 +69,6 @@
             continue;
         }
-        RTMemWipeThoroughly(pvWipe, RT_MIN(cbAlloc, RTRandU32Ex(1, cbAlloc)),
-                            p /* Passes */);
+        size_t cbWipeRand = RTRandU32Ex(1, cbAlloc);
+        RTMemWipeThoroughly(pvWipe, RT_MIN(cbAlloc, cbWipeRand), p /* Passes */);
         if (!memcmp(pvWipe, pvBuf, cbAlloc))
             RTTestIFailed("Memory blocks must differ (%z bytes, 0x%p vs. 0x%p)!\n",
