diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-07-06 11:49:52 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-07-06 11:50:25 -0700 |
| commit | 111989a6265af86b180932a9c1dd70d48910f83a (patch) | |
| tree | e3a89c155ecc2058e0dbe4c2649deb055f289844 /src/rt/test/rust_test_runtime.cpp | |
| parent | 066bcc6c79cb464b5a91ab30293d98e3ec2dbcca (diff) | |
| download | rust-111989a6265af86b180932a9c1dd70d48910f83a.tar.gz rust-111989a6265af86b180932a9c1dd70d48910f83a.zip | |
Removed what seems to be the last of the calls to rand(). Closes #582.
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
| -rw-r--r-- | src/rt/test/rust_test_runtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/test/rust_test_runtime.cpp b/src/rt/test/rust_test_runtime.cpp index acb3557b8c1..8acfe45c9e6 100644 --- a/src/rt/test/rust_test_runtime.cpp +++ b/src/rt/test/rust_test_runtime.cpp @@ -15,7 +15,7 @@ rust_domain_test::worker::run() { for (int i = 0; i < TASKS; i++) { handle->create_task(NULL, "child"); } - sync::random_sleep(1000); + sync::sleep(rand(&handle->rctx) % 1000); } bool @@ -62,6 +62,6 @@ rust_task_test::run() { worker->start(); } - sync::random_sleep(1000); + sync::sleep(rand(&kernel.sched->rctx) % 1000); return true; } |
