X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..2be6500137966bba13903b24204a44804f9e133a:/icuSources/test/intltest/nmfmtrt.h diff --git a/icuSources/test/intltest/nmfmtrt.h b/icuSources/test/intltest/nmfmtrt.h index 152f2e75..a61c5a47 100644 --- a/icuSources/test/intltest/nmfmtrt.h +++ b/icuSources/test/intltest/nmfmtrt.h @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2001, International Business Machines Corporation and + * Copyright (c) 1997-2009, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -14,7 +14,6 @@ #include "unicode/numfmt.h" #include "unicode/fmtable.h" #include "intltest.h" -#include /** * Performs round-trip tests for NumberFormat @@ -57,19 +56,7 @@ public: /* * Return a random uint32_t **/ - static uint32_t randLong() - { - // Assume 8-bit (or larger) rand values. Also assume - // that the system rand() function is very poor, which it always is. - uint32_t d; - uint32_t i; - char* poke = (char*)&d; - for (i=0; i < sizeof(uint32_t); ++i) - { - poke[i] = (char)(rand() & 0xFF); - } - return d; - } + static uint32_t randLong(); /** * Return a random double 0 <= x < 1.0 @@ -80,7 +67,7 @@ public: } protected: - UBool failure(UErrorCode status, const char* msg); + UBool failure(UErrorCode status, const char* msg, UBool possibleDataError=FALSE); };