Diggory Hardy
d291f71fd4
Add COPYRIGHT file and update copyright & licence notices
2018-08-16 15:38:40 +01:00
Diggory Hardy
22d6607651
Merge branch '0.5'
2018-08-16 12:44:08 +01:00
Diggory Hardy
523058f23f
Merge branch '0.4' into 0.5
2018-08-16 12:43:20 +01:00
Diggory Hardy
5301750dd0
Merge pull request #590 from dhardy/0.4
...
Prepare 0.4.3 release
2018-08-16 12:34:29 +01:00
Diggory Hardy
d7d5da49da
Prepare 0.4.3 release
2018-08-16 12:20:30 +01:00
Diggory Hardy
ada66a8149
Merge pull request #589 from LionNatsu/patch-2
...
os.rs: fix wrong syscall number for PowerPC
2018-08-16 12:17:53 +01:00
Lion Yang
5b9e5c39d8
os.rs: fix wrong syscall number for PowerPC
...
__NR_getrandom is 359 on PowerPC, added from torvalds/linux@7d59deb50a v3.17-rc5.
The bug was introduced from 05f23d275 3 years ago, affecting from 0.1.1 to before 0.5.0-pre.0.
It has already been fixed on the 0.5 branch at 00713a61c so this is a backport.
2018-08-15 16:10:37 +08:00
Diggory Hardy
b78dd9796e
Merge pull request #587 from dhardy/move
...
Update paths due to relocation
2018-08-14 14:15:19 +01:00
Diggory Hardy
c900945790
Merge pull request #588 from dhardy/wasm
...
Fix wasm-bindgen build
2018-08-14 12:09:37 +01:00
Diggory Hardy
3286a8bfad
Fix wasm-bindgen build
...
wasm_import_module feature has been stabilised
2018-08-14 11:52:04 +01:00
Diggory Hardy
f7497f77a4
Update paths due to relocation
...
Repo moved from rust-lang-nursery to rust-random
AppVeyor CI is now managed by dhardy
2018-08-13 18:00:37 +01:00
Diggory Hardy
0671cf834e
Merge branch '0.5'
2018-08-10 15:26:27 +01:00
Diggory Hardy
cefcb7ab12
Merge pull request #585 from real-or-random/patch-1
...
Update ChaChaRng doc
2018-08-10 11:14:39 +01:00
Tim Ruffing
cfbc238230
Update ChaChaRng doc
...
- Fix a typo
- Use `stream_id` instead of `nonce` when describing the layout
to be consistent with the explanation
- Remove spaces before footnotes
2018-08-09 16:21:16 +02:00
Diggory Hardy
8286414621
Merge pull request #584 from dhardy/0.5
...
Prepare 0.5.5 release
2018-08-07 14:54:33 +01:00
Diggory Hardy
03db6e7f13
Prepare 0.5.5 release
2018-08-06 19:05:15 +01:00
Diggory Hardy
628f80a129
Fix links in lib doc
2018-08-06 19:02:23 +01:00
Diggory Hardy
01155c91f8
Fix links in lib doc
2018-08-05 15:26:20 +01:00
Diggory Hardy
3ce3ea7c7e
Merge pull request #574 from vks/beta
...
Implement Beta distribution
2018-08-04 16:16:58 +01:00
Diggory Hardy
60249716d0
Merge pull request #576 from vks/weibull
...
Implement Weibull distribution
2018-08-04 16:15:51 +01:00
Vinzent Steinberg
15cb13296e
Implement Beta distribution
2018-08-04 16:20:07 +02:00
Vinzent Steinberg
8303241a47
Mention Pareto distribution in docs
2018-08-04 16:15:48 +02:00
Vinzent Steinberg
fb4866eebc
Implement Weibull distribution
2018-08-04 16:15:48 +02:00
Diggory Hardy
3b890dc960
Merge pull request #575 from vks/triangular
...
Implement triangular distribution
2018-08-04 11:38:38 +01:00
Diggory Hardy
fa269c3e81
Merge pull request #561 from TheIronBorn/patch-6
...
implement SIMD UniformInt
2018-08-03 09:46:40 +01:00
TheIronBorn
b45e54f76d
Merge branch 'master' into patch-6
2018-08-02 15:36:11 -07:00
TheIronBorn
9c12ad3c69
impl SIMD wmul, UniformInt
2018-08-02 15:33:01 -07:00
Vinzent Steinberg
7f1bf4efc3
Triangular: Avoid division
2018-07-30 15:22:53 +02:00
Vinzent Steinberg
d8b0d42417
Implement triangular distribution
2018-07-30 15:17:54 +02:00
Diggory Hardy
af8aa5238a
Disable Fuchsia test target
2018-07-30 12:43:43 +01:00
Diggory Hardy
2f052a94f0
Merge pull request #571 from vks/automatic-i128-support
...
Replace `i128_support` feature with compile-time detection
2018-07-30 12:42:14 +01:00
Vinzent Steinberg
b7bead90fb
Update changelog for 0.6
2018-07-30 13:33:59 +02:00
Vinzent Steinberg
8c75a348bd
Replace i128_support feature with compile-time detection
...
This breaks builds using the `i128_support` feature with nightlies
supporting `i128` before Rust 1.26.
2018-07-30 13:33:47 +02:00
Diggory Hardy
9b5db4c4c3
Merge pull request #479 from dhardy/sample_floyd
...
seq: use Floyd's combination algorithm to sample indices
2018-07-30 12:23:32 +01:00
Diggory Hardy
19897e53c1
sample_indices: always shuffle. Floyd's alg: optimise.
2018-07-30 11:02:06 +01:00
Diggory Hardy
805022c096
sample_indices: update model parameters
...
This accounts for the "cache" method being replaced by
rejection sampling and now using usize again.
2018-07-30 11:02:06 +01:00
Diggory Hardy
fb64cf26f7
sample_indices: add new seq::index module for index sampling
2018-07-30 11:02:06 +01:00
Diggory Hardy
91f0af2504
sample_indices: rename Indices → IndexVec; some revisions
2018-07-30 11:02:06 +01:00
Diggory Hardy
d624e840ba
sample_indices_cache: use rejection sampling instead
2018-07-30 11:02:06 +01:00
Diggory Hardy
5fc1da8d8c
sample_indices: also support usize internally
2018-07-30 11:02:06 +01:00
Diggory Hardy
59d0823a78
sample_indices: abstract over return type
...
This is to allow use of u32 or usize internally
2018-07-30 11:02:06 +01:00
Diggory Hardy
c95f8969d3
sample_indices: use f32 in heuristics and add short-cut
...
Motivation: don't have to worry about overflow whichever index type is used.
Appears to slightly improve some benchmarks, no affect on others.
2018-07-30 11:01:57 +01:00
Diggory Hardy
98889f21bf
sample_indices: update selection heuristics
...
Update with new benchmark data from `u32` impls of Floyd's and cached
algorithms (inplace alg already used benchmarks from `u32` impl).
Update Floyd's with a balanced model adequate for both shuffled
and unshuffled versions.
2018-07-30 11:01:57 +01:00
Diggory Hardy
d4da64e272
sample_indices: add 'shuffled' parameter
2018-07-30 11:01:57 +01:00
Diggory Hardy
2f5a03a7f0
sample_indices: use u32 internally only
...
(controversial)
2018-07-30 11:01:57 +01:00
Diggory Hardy
949833ddd6
sample_indices: add Floyd's algorithm and update selection logic
2018-07-30 11:01:57 +01:00
Diggory Hardy
28d4949006
sample_indices: refactor; switch _inplaces to u32 only
...
The sample_indices_inplace algorithm is inappropriate for large numbers
2018-07-30 11:01:57 +01:00
Diggory Hardy
647371e8cd
sample_indices: revise benchmarks (pre-optimisation)
2018-07-30 11:01:57 +01:00
Paul Dicker
d8bea3a304
Merge pull request #563 from pitdicker/travis
...
Extend CI configuration
2018-07-27 22:05:13 +02:00
Paul Dicker
9d2ef95449
Merge pull request #542 from TheIronBorn/patch-5
...
fix SIMD integer endian
2018-07-27 19:14:36 +02:00