]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/nmfmtrt.h
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / test / intltest / nmfmtrt.h
index 152f2e7530d193342ac5b0e1fa29c31d38fe7ac9..12eff9a29d8e03305dd24868385ad3780e27bd11 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2001, International Business Machines Corporation and
+ * Copyright (c) 1997-2003, 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 <stdlib.h>
 
 /** 
  * 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