diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-22 18:28:49 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-23 11:50:45 +1100 |
| commit | 14a6a62a742e6aa79519dbc4300266df46f858f9 (patch) | |
| tree | 7e5e852aec70fa5b326f4f4958d40175c91d424c /src/rt/sync/rust_thread.cpp | |
| parent | ae0905ab67a2dd3def61e266bba9f8f223586af6 (diff) | |
| download | rust-14a6a62a742e6aa79519dbc4300266df46f858f9.tar.gz rust-14a6a62a742e6aa79519dbc4300266df46f858f9.zip | |
std::rand: simplify/safe-ify the default Rng.fill_bytes.
The `&[u8]` -> `&[u64]` and `&[u32]` casts were not nice: they ignored alignment requirements and are generally very unsafe.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
