rt: Rename rand() to isaac_rand() since the former prevents lots of standard headers from being included

This commit is contained in:
Patrick Walton
2011-09-20 15:34:47 -07:00
parent 307957710c
commit 5209b19255
4 changed files with 5 additions and 5 deletions

View File

@@ -179,7 +179,7 @@ rust_scheduler::schedule_task(int id) {
// FIXME: in the face of failing tasks, this is not always right.
// I(this, n_live_tasks() > 0);
if (running_tasks.length() > 0) {
size_t k = rand(&rctx);
size_t k = isaac_rand(&rctx);
// Look around for a runnable task, starting at k.
for(size_t j = 0; j < running_tasks.length(); ++j) {
size_t i = (j + k) % running_tasks.length();