diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs index 367278f66f3..cdf6a5bb63d 100644 --- a/src/libcore/rand.rs +++ b/src/libcore/rand.rs @@ -698,7 +698,7 @@ impl Rng for @R { * generator. */ pub fn random() -> T { - (*task_rng()).gen() + task_rng().gen() } #[cfg(test)]