From a1b40d51367ab74a39e1279cc6821bd4e80f747b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 21 May 2012 17:25:33 -0700 Subject: [PATCH] core: Fix types in rand mod --- src/libcore/rand.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs index a6ce71fbf9d..4a73131c5de 100644 --- a/src/libcore/rand.rs +++ b/src/libcore/rand.rs @@ -59,7 +59,7 @@ impl extensions for rng { #[doc = "Return a random uint"] fn gen_uint() -> uint { - self.gen_u64() as u64 + self.gen_u64() as uint } #[doc = "Return a uint randomly chosen from the range [start, end], \