dhardy / rand

http://doc.rust-lang.org/rand
Other
2 stars 2 forks source link

Select "SimpleRand" over generic "Rand" for backwards compatibility #71

Closed dhardy closed 6 years ago

dhardy commented 6 years ago

This makes the new Rand basically the same API as the old Rand, but defined via Default. This should make it a drop-in replacement, in theory.

rand-derive will need a bit of tweaking but should be relatively easy.

dhardy commented 6 years ago

Updated: I removed the uniform, ascii_word_char and codepoint convenience functions in favour of distributions, and fixed the tests.