Skip to content

Commit 0f0dc94

Browse files
committed
Revert "libcore: remove unnecessary deref"
This reverts commit 9860fe1 as part of Felix's attempt to resolve Issue rust-lang#6061.
1 parent 699e95e commit 0f0dc94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/rand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ pub fn task_rng() -> @IsaacRng {
801801
* generator.
802802
*/
803803
pub fn random<T: Rand>() -> T {
804-
task_rng().gen()
804+
(*task_rng()).gen()
805805
}
806806

807807
#[cfg(test)]

0 commit comments

Comments
 (0)