3258 Commits

Author SHA1 Message Date
Diggory Hardy
766c7eccd7
Doc: improve random, thread_rng, ThreadRng docs (#1257)
* Use a custom Debug impl for ThreadRng

* Adjust documentation of random, thread_rng, ThreadRng

* Fix no-std build

* Compatibility with older rustc
2022-09-30 09:48:10 +01:00
Alex Touchet
2b4f00add7
Update listed rand_core version number (#1254) 2022-09-16 07:41:28 +01:00
Diggory Hardy
89a1336b93
rand_core: update CHANGELOG for 0.6.4 (#1253) 2022-09-15 14:23:08 +01:00
TheIronBorn
b73640705d
Merge pull request #1246 from rust-random/work6
Bump MSRV to 1.51.0
2022-08-14 14:14:52 -07:00
Diggory Hardy
fbf06ff919 Optimized path of sample_efraimidis_spirakis is stable
This no longer requires nightly
2022-08-14 09:00:20 +01:00
Diggory Hardy
6951164ec6 Bump MSRV to 1.51.0: support const generics by default 2022-08-14 08:59:24 +01:00
Diggory Hardy
db80c40c4b Bump MSRV to 1.38.0: fixes crossbeam-utils dev-dependency 2022-08-14 08:59:24 +01:00
Pyry Kontio
2569e9d653
Mention disabling getrandom for wasm32-unknown-unknown in README (#1250) 2022-08-14 08:59:12 +01:00
TheIronBorn
9dd97b41c8
Merge pull request #1247 from rust-random/TheIronBorn-patch-1
optimize simd widening mul
2022-08-12 23:22:38 -07:00
TheIronBorn
d60ab387bf
optimize simd wmul 2022-08-11 05:45:51 +00:00
TheIronBorn
2c16a920cf
Merge pull request #1239 from TheIronBorn/std-simd
switch to std::simd, expand SIMD & docs
2022-08-10 11:56:46 -07:00
TheIronBorn
949d70f6a5 fix doc test 2022-08-07 17:42:24 -07:00
TheIronBorn
2fab15dcd7 fix stdsimd, add mask opt notes 2022-08-07 17:22:19 -07:00
TheIronBorn
1d55a97304
Merge pull request #1240 from TheIronBorn/patch-13
small deterministic example update
2022-08-04 13:54:38 -07:00
TheIronBorn
f89f15fc1f
fix doc link 2022-08-04 20:42:35 +00:00
TheIronBorn
d4b8748004 fix simd ints, clarify mask behavior 2022-07-11 11:29:13 -07:00
TheIronBorn
599d7f8f6d switch to std::simd, expand SIMD stuff & docs
move __m128i to stable, expand documentation, add SIMD to Bernoulli, add maskNxM, add __m512i

genericize simd uniform int

remove some debug stuff

remove bernoulli

foo

foo
2022-07-09 11:03:38 -07:00
TheIronBorn
89d7e4e184
another typo 2022-07-09 03:26:38 +00:00
TheIronBorn
1f99bb72dc
assert deterministic 2022-07-08 19:36:21 +00:00
TheIronBorn
6112c84365
small deterministic example update 2022-07-07 18:58:36 +00:00
masonk
330efe9d42
Deterministic Rayon monte carlo example (#1236)
* Deterministic Rayon monte carlo

* Update deterministic mt with a batching example

* discuss determinism in the context of rayon + rand

* reword the discussion

Co-authored-by: Mason Kramer <mason@masonkramer.net>
2022-07-07 08:20:11 +01:00
Chris Beck
3543f4b025
Make CryptoRngCore trait imply CryptoRng as well (#1230) 2022-05-19 17:55:31 +01:00
Vinzent Steinberg
f0f15b5ece
Merge pull request #1184 from vks/remove-unused-fields
Remove unused fields
2022-04-21 18:53:58 +02:00
Vinzent Steinberg
367cf50566
Merge pull request #1228 from cuishuang/master
fix typo
2022-04-20 22:49:28 +02:00
cuishuang
13193fcb8b fix typo
Signed-off-by: cuishuang <imcusg@gmail.com>
2022-04-20 10:03:17 +08:00
Vinzent Steinberg
5f0d3a10a9 rand_distr: Remove unused fields
This breaks serialization compatibility with older versions.
2022-03-30 00:08:05 +02:00
Ralf Jung
a8474f7932
update Miri CI config (#1223) 2022-03-09 07:34:13 +00:00
Diggory Hardy
546acdc851
README: bump rand version 2022-02-14 08:38:55 +00:00
Diggory Hardy
937320cbfe
Update CHANGELOG for 0.8.5 (#1221) 2022-02-14 08:37:01 +00:00
Diggory Hardy
2924af688d
Merge pull request #1183 from vks/fill-float-doc
Mention that `Fill` supports floats
2022-02-11 14:29:28 +00:00
Diggory Hardy
dbbc1bf317
Merge pull request #1218 from Will-Low/master
Making distributions comparable by deriving PartialEq
2022-02-11 14:26:03 +00:00
Will Springer
9f20df04d8 Making distributions comparable by deriving PartialEq. Tests included 2022-02-10 19:36:42 -08:00
Vinzent Steinberg
a407bdfa45
Merge pull request #1216 from rust-random/work5
Update to packed_simd_2 0.3.7
2022-02-08 20:38:58 +01:00
Diggory Hardy
d3ca11b0bc Update to packed_simd_2 0.3.7 2022-02-08 09:33:33 +00:00
Diggory Hardy
fa04c15d0b
Merge pull request #1215 from Lantern-chat/master
Remove unused `slice_partition_at_index` feature
2022-02-07 09:44:37 +00:00
novacrazy
73f8ffd163 Remove unused slice_partition_at_index feature 2022-02-06 21:19:58 -06:00
Vinzent Steinberg
8f372500f0
Merge pull request #1208 from newpavlov/rand_distr/fix_no_std
rand_distr: fix no_std build
2022-01-13 14:09:39 +01:00
warren
745ace87e5 rand_distr: Fix dirichlet sample method for small alpha.
Generating Dirichlet samples using the method based on samples from
the gamma distribution can result in samples being nan if all the
values in alpha are sufficiently small.  The fix is to instead use
the method based on the marginal distributions being the beta
distribution (i.e. the "stick breaking" method) when all values in
alpha are small.
2022-01-02 14:45:22 -05:00
Артём Павлов
9ef737ba5b update changelog 2021-12-28 16:52:13 +03:00
Артём Павлов
e9f5cfccbf bump rand_distr to v0.4.3 2021-12-28 16:51:07 +03:00
Артём Павлов
7f9aa2b43c rand_distr: fix no_std build 2021-12-28 16:31:42 +03:00
Vinzent Steinberg
19404d6876
Merge pull request #1202 from adamreichold/numpy-compat
Add Lcg128CmDxsm64 generator compatible with NumPy's PCG64DXSM
2021-12-06 14:12:20 +01:00
Adam Reichold
f44ea42089 Extend generator benchmarks to include the newly added Pcg64Dxsm variant. 2021-12-06 13:41:05 +01:00
Adam Reichold
6107f93e81 Apply the same copy-editing to the existing generators as was discussed for Lcg128CmDxsm64. 2021-12-06 13:35:29 +01:00
Adam Reichold
ece8e48905 Add Lcg128CmDxsm64 generator compatible with NumPy's PCG64DXSM. 2021-12-06 13:35:29 +01:00
Adam Reichold
b0d7833b55 Replace the open-coded fill_bytes_impl by rand_core::impls::fill_bytes_via_next. 2021-12-06 13:35:29 +01:00
Vinzent Steinberg
1a880aa549
Merge pull request #1204 from xu-cheng/uniform-example
rand: fix incorrect example in Uniform
2021-12-06 11:07:55 +01:00
Cheng XU
743661e2f5
rand: fix incorrect example in Uniform
The current example to implement `SampleUniform` for custom types is incorrect.
It mistakenly forwards the implementation of `UniformSampler::new_inclusive` to
`UniformSampler::new`.
2021-11-23 17:46:33 -08:00
Diggory Hardy
f8106ef79d
Merge pull request #1199 from samusz/samusz_doc
updated version in Cargo.toml example
2021-11-15 14:29:21 +00:00
Sacha Muszlak
3e65a15cab
updated version in Cargo.toml example 2021-11-04 15:15:34 +01:00