From 5209b192558e4adf0baa0981c463dcff61ec0636 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 20 Sep 2011 15:34:47 -0700 Subject: rt: Rename rand() to isaac_rand() since the former prevents lots of standard headers from being included --- src/rt/rust_kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_kernel.cpp') diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index e5234b9d6f5..347b7907b53 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -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); -- cgit 1.4.1-3-g733a5