*/
#include <folly/test/DeterministicSchedule.h>
-
-#include <assert.h>
-
#include <algorithm>
#include <list>
#include <mutex>
#include <random>
-#include <unordered_map>
#include <utility>
+#include <unordered_map>
+#include <assert.h>
-#include <folly/Random.h>
+DECLARE_ACCESS_SPREADER_TYPE(folly::test::DeterministicAtomic)
namespace folly {
namespace test {
if (tls_sched) {
return tls_sched->scheduler_(n);
}
- return Random::rand32() % n;
+ return std::rand() % n;
}
int DeterministicSchedule::getcpu(unsigned* cpu,