Vinzent Steinberg
d2e7378adc
Simplify attributes
2018-07-24 13:25:08 +02:00
Vinzent Steinberg
cb275bc7e2
Fix serde tests
2018-07-23 13:08:56 +02:00
Paul Dicker
29a9d1df58
Don't add std feature to rand_isaac and rand_xorshift
2018-07-20 20:07:48 +02:00
Vinzent Steinberg
e7b17ddce3
The rand crate does not depend on serde or bincode anymore
2018-07-20 16:25:56 +02:00
Vinzent Steinberg
ecd18674a4
Enable more CI tests
...
Before, there Serde tests where not running.
2018-07-20 16:17:34 +02:00
Vinzent Steinberg
dac6227596
rand_xorshift: Add README
2018-07-20 15:45:08 +02:00
Vinzent Steinberg
2a658d9fe4
Fix serde tests for rand_isaac and rand_xorshift
2018-07-20 15:44:15 +02:00
Vinzent Steinberg
a3ac8d3a6a
Fix compilation warning with serde
2018-07-18 15:27:04 +02:00
Vinzent Steinberg
ecc6e66020
Fix broken links in docs
2018-07-18 15:19:52 +02:00
Vinzent Steinberg
2847c8af0d
Fix deprecation warnings in benchmarks
2018-07-18 10:36:07 +02:00
Vinzent Steinberg
9b069fe2ea
Fix benchmarks
2018-07-18 10:34:23 +02:00
Vinzent Steinberg
2cf9acb44e
Make sure XorShiftRng is deprecated
2018-07-18 10:27:45 +02:00
Vinzent Steinberg
a385938e40
Use keywords consistent with other Rand crates
2018-07-18 10:14:59 +02:00
Vinzent Steinberg
a253a80f76
Move XorShiftRng to its own crate
...
Also recommend `StdRng` rather than the deprecated `IsaacRng`.
2018-07-16 16:13:22 +02:00
Diggory Hardy
d625b18083
Fix deprecation warning in benches/generators.rs
2018-07-16 11:30:55 +01:00
Diggory Hardy
1a98577340
Merge pull request #551 from dhardy/isaac
...
Move ISAAC generators to their own crate
2018-07-16 10:35:41 +01:00
Diggory Hardy
2aabe7839c
Move ISAAC generators to their own crate
2018-07-16 09:18:34 +01:00
Diggory Hardy
b9cc58187b
Merge pull request #548 from sicking/mods
...
Hide modules that don't need to be publicly exported
2018-07-12 18:14:03 +01:00
Jonas Sicking
dd37c58c1c
Hide modules whose distributions we're exposing directly throguh rand::distributions. Also move a couple of distribution helper functions into utils.rs.
2018-07-12 08:22:29 -07:00
Diggory Hardy
515cf18644
Merge pull request #477 from sicking/limit_inexact_float
...
Make Uniform<f32/f64> and gen_range<f32/f64> honor limits strictly. Resolves #476
2018-07-12 16:14:54 +01:00
Jonas Sicking
b6d7d4cfde
Merge CompareAll and CastFromInt
2018-07-12 08:00:12 -07:00
Jonas Sicking
6d2b7e5c8f
Make Uniform and gen_range honor limits strictly for floating point types. Resolves #476
2018-07-12 07:58:27 -07:00
Jonas Sicking
33e2e89837
Add benchmarks for gen_range<f32/f64>
2018-07-12 07:22:05 -07:00
Diggory Hardy
c0322041bf
Merge pull request #547 from sicking/weighterr
...
Add WeightedError
2018-07-12 14:21:21 +01:00
Jonas Sicking
3134986d4e
Add WeightedError
2018-07-12 05:41:08 -07:00
Diggory Hardy
40d8c3972d
Merge branch '0.5'
2018-07-12 12:51:37 +01:00
Diggory Hardy
7a23f3e054
Merge pull request #546 from dhardy/0.5
...
Prepare 0.5.4 release
2018-07-12 10:58:21 +01:00
Diggory Hardy
023901b4a5
Update version numbers to 0.5.4 and add changelog note
2018-07-11 16:27:58 +01:00
Diggory Hardy
13712b6e46
Fix build errors on nightly (alloc crate changes)
2018-07-11 16:27:58 +01:00
Diggory Hardy
da2f7fa001
Merge pull request #541 from alexcrichton/wbg
...
Add support for wasm-bindgen
2018-07-11 16:03:19 +01:00
Alex Crichton
140385528f
Add support for wasm-bindgen
...
This commit adds support to implement the `rand` crate on the
wasm32-unknown-unknown target with the `wasm-bindgen`-based runtime. This
supports being run both in node.js as well as browsers by delegating
appropriately.
Closes #478
2018-07-11 07:07:38 -07:00
Diggory Hardy
74c68bfc59
Merge pull request #545 from dhardy/nightly
...
Fix build errors on nightly (alloc crate changes)
2018-07-11 10:55:13 +01:00
Diggory Hardy
90d306fec3
Avoid use of from_bits until it is available in lib core
...
Also don't use --tests flag with 1.22 compiler.
2018-07-11 10:28:09 +01:00
Diggory Hardy
bac2448e3b
Fix build errors on nightly (alloc crate changes)
2018-07-11 10:28:09 +01:00
Diggory Hardy
600bc5560c
Merge pull request #540 from Thristhart/self_over_window
...
use `self` instead of `window` in JS
2018-07-07 08:48:09 +01:00
Tom Shea
6ef46fd8eb
use self instead of window in JS
...
this allows the same code to work in both windowed contexts (ie, the usual browser stuff) and in non-windowed contexts (like web workers). see https://developer.mozilla.org/en-US/docs/Web/API/Window/self
node doesn't have `self` or `window`, so it shouldn't matter either way
2018-07-06 10:36:25 -07:00
Diggory Hardy
0faff206d2
Merge pull request #518 from sicking/weighted
...
Implement weighted sampling API
2018-07-01 11:01:02 +01:00
Jonas Sicking
bbb037abaf
Implement WeightedIndex, SliceRandom::choose_weighted and SliceRandom::choose_weighted_mut
2018-06-29 13:46:20 -07:00
Diggory Hardy
cd16da443b
Merge pull request #534 from bcko/patch-2
...
added license badge
2018-06-29 15:58:15 +01:00
BC Ko
a3567eeab6
added license badge for rand_core
2018-06-29 06:59:46 -07:00
Diggory Hardy
950c0af271
Merge pull request #523 from pitdicker/simd_support_basic
...
Add basic SIMD support
2018-06-29 09:45:00 +01:00
BC Ko
30b3cbcf16
added license badge
2018-06-28 12:04:01 -07:00
Diggory Hardy
3af227a2bf
Merge branch '0.5'
2018-06-27 10:32:06 +01:00
Diggory Hardy
ad142170d6
Merge pull request #530 from worr/bug/openbsd-typo-5
...
Rename `s` -> `dest` on OpenBSD and bitrig
2018-06-27 10:27:30 +01:00
Paul Dicker
5c948fe05a
Rename NaturalCompare and math_helpers
2018-06-26 15:14:59 +02:00
William Orr
91dede8bff
Update for release 0.5.3
2018-06-26 00:03:21 -07:00
William Orr
4633131578
Rename s -> dest on OpenBSD and bitrig
...
This fixes a failing build on OpenBSD and bitrig. Some refactoring in
8c67fc4 missed some variable renaming in the getentropy backend.
2018-06-25 23:51:21 -07:00
Paul Dicker
4dab1e3da7
Add math_helpers module and various fixes
2018-06-22 10:50:44 +02:00
Paul Dicker
209836f7c3
Implement Uniform for SIMD float types
2018-06-21 21:28:10 +02:00
Paul Dicker
d80efb2bf1
Implement Standard for SIMD float types
2018-06-21 21:27:20 +02:00