about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-09-20 15:34:47 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-09-20 15:34:47 -0700
commit5209b192558e4adf0baa0981c463dcff61ec0636 (patch)
treeb13ff8c70da7023e4042c37429aeedc490c2a8d7 /src/rt/rust_kernel.cpp
parent307957710c69f41519f5f22997c629fc5e077771 (diff)
downloadrust-5209b192558e4adf0baa0981c463dcff61ec0636.tar.gz
rust-5209b192558e4adf0baa0981c463dcff61ec0636.zip
rt: Rename rand() to isaac_rand() since the former prevents lots of standard headers from being included
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
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);