- Expose missing
fill
method for the global RNG. (#90)
- Remove support for 128-bit targets, as they are not supported by rustc yet. (#87)
- Change the RNG algorithm and the way that the seed is computed. This will cause
the algorithm to emit different constants for different seeds, hence the minor
SemVer change.
- Update to the final WyRand v4.2 constants for better entropy. (#82)
- Remove an unnecessary seed modification. (#73)
- Slight restructuring of the
with_seed
function. (#79)
- Clarify documentation for the
fork()
method. (#62) - Mention
fastrand-contrib
in documentation. (#70)
- Breaking: Remove interior mutability from
Rng
. (#47) - Add a
fork()
method. (#49) - Add a
no_std
mode. (#50) - Add an iterator selection function. (#51)
- Add a
choose_multiple()
function for sampling several elements from an iterator. (#55) - Use the
getrandom
crate for seeding on WebAssembly targets if thejs
feature is enabled. (#60)
- Add
Rng::fill()
(#35, #43) - Add
#[must_use]
toRng::with_seed()
(#46)
- Add
get_seed()
andRng::get_seed()
(#33)
- Add
char()
andRng::char()
(#25)
- Implement
PartialEq
andEq
forRng
(#23)
- Switch to Wyrand (#14)
- Fix bug when generating a signed integer within a range (#16)
- Add wasm support.
- Reword docs.
- Add
Rng::with_seed()
.
- Implement
Clone
forRng
.
- Forbid unsafe code.
- Support older Rust versions.
- Tweak Cargo keywords.
- Add
f32()
andf64()
. - Add
lowercase()
,uppercase()
,alphabetic()
, anddigit()
.
- Switch to PCG XSH RR 64/32.
- Fix a bug in
gen_mod_u128
. - Fix bias in ranges.
- Support Rust 1.32.0
- Use
std::$t::MAX
rather than$t::MAX
to support older Rust versions.
- Inline all functions.
- Add
Rng
struct.
- Switch to PCG implementation.
- Add
alphanumeric()
. - Add
seed()
.
- Initial version