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

@@ -150,7 +150,7 @@ rust_kernel::fail() {
rust_task_id
rust_kernel::create_task(rust_task *spawner, const char *name) {
rust_scheduler *thread = threads[rand(&rctx) % num_threads];
rust_scheduler *thread = threads[isaac_rand(&rctx) % num_threads];
rust_task *t = thread->create_task(spawner, name);
{
scoped_lock with(_kernel_lock);