Taiki Endo
3c19b97b7a
Enable all stable features in the playground
2020-12-31 15:59:10 +09:00
Diggory Hardy
98a1aaf28e
Merge pull request #1076 from dhardy/work
...
Rand v0.8, rand_distr v0.4
2020-12-18 23:25:51 +00:00
Diggory Hardy
1959b1adac
Adjust homepage to point at the book
2020-12-15 10:13:17 +00:00
Diggory Hardy
e9adf451c5
Switch documentation links to docs.rs
2020-12-15 10:08:34 +00:00
Diggory Hardy
491014be44
Prepare rand v0.8.0 release
2020-12-14 16:04:34 +00:00
Diggory Hardy
459d863f2b
Prepare rand_chacha 0.3.0 release
2020-12-14 14:43:45 +00:00
Diggory Hardy
15aebf418f
Prepare rand_pcg 0.3.0
2020-12-14 14:43:45 +00:00
Diggory Hardy
14c2016c01
Prepare rand_hc 0.3.0
2020-12-14 14:43:45 +00:00
Diggory Hardy
d95dbd2f93
Prepare rand_core 0.6.0
2020-12-14 14:43:45 +00:00
Diggory Hardy
8caa86b666
Cargo.toml: remove [badges] sections
...
According to the Cargo manifest, this section is not used
and the README should be used for build status.
2020-12-13 11:00:07 +00:00
Vinzent Steinberg
5eb27f0ed9
Switch to packed_simd_2
2020-10-15 13:24:24 +02:00
Vinzent Steinberg
b2b53f4b88
Disentangle nightly
and simd_support
feature
...
Now `nightly` can be used without implying `simd_support`. This
hopefully makes the `nightly` feature more stable and improves
compilation time if `simd_support` is not required.
The documentation and changelog were updated accordingly.
2020-09-22 20:06:58 +02:00
Vinzent Steinberg
a7161ac817
SmallRng: Replace PCG algorithm with xoshiro{128,256}++
...
Due to close correlations of PCG streams (#907 ) and lack of right-state
propagation (#905 ), the `SmallRng` algorithm is switched to
xoshiro{128,256}++. The implementation is taken from the `rand_xoshiro`
crate and slightly simplified.
Fixes #910 .
2020-09-15 15:56:00 +02:00
Vinzent Steinberg
29e78c7b75
Get rid of "partition_add_index" feature
...
It offers nothing over the "nightly" feature and makes testing more
complicated.
2020-08-27 18:21:07 +02:00
Zachary Neely
9b4df3bb0b
Add choose_multiple_weighted, tests, and benchmarks
2020-08-27 18:21:07 +02:00
Diggory Hardy
cb493927e6
Use doc(cfg) to annotate feature-gated items ( #1019 )
...
* Use doc(cfg) to annotate feature-gated items
* Fix block RNG example
* Formatting (partial rustfmt run)
2020-08-27 10:20:28 +01:00
Sebastian Thiel
2c2fbd6463
Reduce packaged crate size by 5kb using cargo diet -r
( #983 )
...
* Reduce packaged crate size by 5kb using `cargo diet -r`
It converted excludes into includes, removing the following files
from the package.
┌───────────────────────────────────────────┬─────────────┐
│ File │ Size (Byte) │
├───────────────────────────────────────────┼─────────────┤
│ .gitignore │ 77 │
│ .github/ISSUE_TEMPLATE/other.md │ 80 │
│ .github/ISSUE_TEMPLATE/feature_request.md │ 274 │
│ .github/ISSUE_TEMPLATE/compile-issue.md │ 488 │
│ utils/ci/install_cargo_web.sh │ 536 │
│ COPYRIGHT │ 569 │
│ utils/ci/miri.sh │ 815 │
│ rustfmt.toml │ 863 │
│ benches/weighted.rs │ 1088 │
│ utils/ci/install.sh │ 1381 │
│ utils/ci/script.sh │ 1583 │
│ examples/monte-carlo.rs │ 1611 │
│ appveyor.yml │ 2098 │
│ SECURITY.md │ 2822 │
│ .travis.yml │ 2952 │
│ utils/ziggurat_tables.py │ 3929 │
│ examples/monty-hall.rs │ 4004 │
│ benches/misc.rs │ 4524 │
│ benches/seq.rs │ 5410 │
│ benches/generators.rs │ 5490 │
└───────────────────────────────────────────┴─────────────┘
* Include COPIRIGHT in package
* Ignore benchmarks and tests in rand_distr
* prefer using 'src/' instead of 'src/**/*'
2020-05-31 16:18:05 +01:00
Kaz Wesley
4b99567b56
impl PartialEq, Eq for rngs ( #979 )
...
Implements #974 . As in #975 , but defining equality such that the user is
not exposed to the fact that one logical state may have different
representations in an implementation-specific way.
2020-05-29 09:40:09 +01:00
CGMossa
7ede440385
Added serde1
feature to Serialize/Deserialize WeightedIndex
( #974 )
...
Re-enable serde1 for all distributions, StepRng and IndexVec
2020-05-18 09:24:26 +01:00
Diggory Hardy
e96cc6fed5
Cargo.toml doc: address review
2020-03-10 12:14:36 +00:00
Diggory Hardy
abcd587bd8
Rand: add std_rng feature flag
2020-03-09 15:23:10 +00:00
Diggory Hardy
0aa461715b
rand: remove wasm-bindgen and stdweb feature flags
...
These feature flags are re-exports from getrandom and were
already scheduled for removal in 0.8.
2020-03-09 14:35:52 +00:00
Diggory Hardy
8d225e4e14
rand: remove wasm_bindgen test
...
This test is now redundant with testing within the getrandom repository.
2020-03-09 14:34:34 +00:00
Diggory Hardy
0f4e152c1c
Prepare rand 0.7.3 release
2020-01-09 15:17:04 +00:00
Diggory Hardy
a67173ef63
make libc dependency optional (fork protection requires std)
2020-01-08 14:46:14 +00:00
Diggory Hardy
3f2ab75525
Remove sub-crates for os, isaac, jitter, xorshift and xoshiro
...
rand_os has been deprecated since OsRng is now provided by rand_core
The other crates have been moved to the rust-random/rngs repo.
2019-09-20 16:39:57 +01:00
Diggory Hardy
5ac4cbd38c
Prepare rand 0.7.2
2019-09-16 20:45:30 +01:00
Diggory Hardy
448524fb3a
Add notice of future removal of getrandom's wasm features
2019-09-14 09:26:10 +01:00
Diggory Hardy
54d5d7378b
Prepare rand 0.7.1
2019-09-13 11:55:37 +01:00
Diggory Hardy
2c43268c82
Merge pull request #880 from vks/vigna2019
...
rand_xoshiro: Bump minor version
2019-09-02 17:32:43 +01:00
Vinzent Steinberg
2b7d92c7b7
rand_xoshiro: Bump minor version
2019-09-02 18:06:20 +02:00
Diggory Hardy
94aa8fa9f1
Add testing of minimal versions
...
Closes #741
This seems to require a couple of hacks unfortunately.
2019-08-28 17:03:28 +01:00
Diggory Hardy
a622ea33b8
Fixes regarding OsRng move
2019-08-28 13:00:14 +01:00
newpavlov
e02b467eca
license field fixes
2019-08-08 11:44:35 +03:00
Diggory Hardy
5a8d619f31
Merge branch 'master' into no-std
2019-07-25 15:55:25 +01:00
Diggory Hardy
44939f1702
Prepare rand_chacha 0.2.1
2019-07-20 15:47:57 +01:00
Ruben De Smet
bf046f331e
Fix no-std support.
...
`rand_chacha` used `c2-chacha` without trickling through features.
This disables default options in `rand_chacha`, enabling simd and std
when the option is selected at the root.
2019-07-20 16:15:05 +02:00
Vinzent Steinberg
84d9be45f0
Bump version and changelog to 0.7.0
2019-06-27 15:38:19 +02:00
Diggory Hardy
9a8b6290bf
Prepare 0.7.0-pre.2 release
2019-06-27 10:01:46 +01:00
Vinzent Steinberg
84b0ddfcc4
rand: Remove serde1 feature
...
This feature does not do anything in the `rand` crate and was forwarded
to `rand_core`, where it was used for `BlockRng` and `BlockRng64`.
However, crates using this feature would use `rand_core` directly
instead, making the feature pointless for `rand`.
It is not expected to use this feature for any of the RNGs in `rand`.
This hopefully makes it possible to build `rand` on docs.rs again.
(See https://github.com/rust-lang/docs.rs/issues/369 .)
Now the serde1 feature does not do anything, but it is still available
for backwards compatibility.
2019-06-24 17:35:18 +02:00
Vinzent Steinberg
22a29ee1be
rand: Remove build.rs
...
This is no longer required, because our minimum Rust version is high
enough. Removing it results in faster compilation.
2019-06-12 17:31:10 +02:00
Vinzent Steinberg
75d639b78d
rand: Use Rust 2018
2019-06-12 17:02:36 +02:00
Diggory Hardy
7690c21169
Bump version to 0.7.0-pre.1
2019-06-12 09:56:25 +01:00
Diggory Hardy
1991d0c720
Fix Travis no_std test and remove old Cargo patch
...
Note: Cargo patch was used since rand_os dependend on
rdrand on sgx. Now getrandom has its own rdrand impl.
2019-06-11 16:41:27 +01:00
Diggory Hardy
8dd020c537
Prepare rand_pcg 0.2.0 release
2019-06-11 13:29:59 +01:00
Diggory Hardy
1f1896fadf
Prepare rand_hc 0.2.0 and update to edition 2018
2019-06-11 11:58:36 +01:00
Diggory Hardy
4e5c08ddc5
Prepare rand_isaac 0.2.0 and update to edition 2018
2019-06-11 11:58:17 +01:00
Diggory Hardy
17986eb652
Prepare rand_xorshift 0.2.0 and update to edition 2018
2019-06-11 11:57:55 +01:00
Diggory Hardy
b44f501e92
Prepare rand_xoshiro 0.3.0 and update to edition 2018
2019-06-11 11:57:35 +01:00
Diggory Hardy
01b1bf8958
Move distributions benchmark to rand_distr
...
This avoids a circular dependency between rand and rand_distr
2019-06-11 10:42:41 +01:00