@@ -163,17 +163,11 @@ _buckets = [self allocZeroedMemoryWithSize: sizeof(*_buckets) count: _capacity]; if (of_hash_seed != 0) -#if defined(HAVE_ARC4RANDOM) - _rotate = arc4random() & 31; -#elif defined(HAVE_RANDOM) - _rotate = random() & 31; -#else - _rotate = rand() & 31; -#endif + _rotate = of_random() & 31; } @catch (id e) { [self release]; @throw e; } @@ -536,17 +530,11 @@ /* * Get a new random value for _rotate, so that it is not less secure * than creating a new hash map. */ if (of_hash_seed != 0) -#if defined(HAVE_ARC4RANDOM) - _rotate = arc4random() & 31; -#elif defined(HAVE_RANDOM) - _rotate = random() & 31; -#else - _rotate = rand() & 31; -#endif + _rotate = of_random() & 31; } - (bool)containsObject: (void *)object { if (object == NULL || _count == 0)