Commit 4a24f10
committed
libcore: unify
This moves all the basic random value generation into the Rand instances for
each type and then removes the `gen_int`, `gen_char` (etc) methods on RngUtil,
leaving only the generic `gen` and the more specialised methods.
Also, removes some imports that are redundant due to a `use core::prelude::*`
statement.gen_<type> methods on rand::RngUtil into the generic gen.1 parent 7b00921 commit 4a24f10
File tree
15 files changed
+106
-247
lines changed- src
- libcore
- librustpkg
- libstd
- test/bench
15 files changed
+106
-247
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments