3125 Commits

Author SHA1 Message Date
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
Артём Павлов
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
Diggory Hardy
0f4fc6b4c3
Merge pull request #1192 from kazcw/chacha-faster
Chacha: performance improvements
2021-10-23 11:40:40 +01:00
Kaz Wesley
fb7af73433 rand_chacha: update changelog 2021-10-22 09:20:25 -07:00
Vinzent Steinberg
fa6638b938
Merge pull request #1197 from vks/clippy
Fix clippy warnings
2021-10-21 20:54:28 +02:00
Vinzent Steinberg
c1e859f818 Avoid unnecessary by_ref 2021-10-21 20:35:33 +02:00
Vinzent Steinberg
bd0038d767 Fix clippy warnings 2021-10-21 16:23:14 +02:00
Kaz Wesley
6455dc47e1 rand_chacha: optimize outputting
Improve AVX2 vectorizability of copying results to buffer. Performance
gain measured at 15% (ChaCha20) to 37% (ChaCha8).
2021-10-13 23:20:05 -07:00
Kaz Wesley
6e6cc35d99 rand_chacha: improve little-endian performance incrementing pos counter
On little-endian platforms we can use native vector operations to
increment the pos counter, because it is packed little-endian into the
state vector.
2021-10-13 23:20:05 -07:00
Diggory Hardy
320acef897
Merge pull request #1190 from r00ster91/patch-1
Fix typos
2021-10-13 08:45:03 +01:00
r00ster
d8cde3fe57
Fix typos 2021-10-12 21:07:36 +02:00
Diggory Hardy
c25b5d4378
Merge pull request #1187 from vks/cryptorngcore
Add `CryptoRngCore` to support `CryptoRng` trait objects
2021-09-24 10:33:43 +01:00
Vinzent Steinberg
a4fa0771a2 CryptoRngCore: Improve docs 2021-09-20 14:27:14 +02:00
Vinzent Steinberg
c797f070b1 rand_core: Rename CryptoRngCore::upcast to as_rngcore 2021-09-20 14:10:39 +02:00
Vinzent Steinberg
da917e673f rand_distr: Bump version 2021-09-18 15:45:42 +02:00
Vinzent Steinberg
fe236c52f3 rand_chacha: Add test for trait object upcasting 2021-09-17 21:59:47 +02:00
Vinzent Steinberg
51d1365370 rand_core: Add CryptoRngCore to support CryptoRng trait objects
Fixes #1143.
2021-09-17 21:59:38 +02:00
Vinzent Steinberg
eac985fe73 Fix spelling 2021-09-17 21:35:48 +02:00
Vinzent Steinberg
cfddee3a5f
Merge pull request #1186 from vks/rand_distr-0.4.2
Prepare rand_distr 0.4.2 release
2021-09-17 20:13:29 +02:00
Vinzent Steinberg
48463e05b9 Prepare rand_distr 0.4.2 release 2021-09-17 19:38:40 +02:00
Vinzent Steinberg
a9401e16b7 Mention that Fill supports floats 2021-09-15 18:55:08 +02:00
Diggory Hardy
3c8f92bfbb
Merge pull request #1180 from rust-random/work2
fill_via_chunks: use safe code via chunks_exact_mut on BE
2021-09-15 15:19:39 +01:00
Diggory Hardy
34a8f13d86 Replace ToLe with Observable, including as_byte_slice method 2021-09-15 09:31:34 +01:00
Diggory Hardy
19b7a76481 fill_via_chunks: make ToLe an unsafe trait 2021-09-14 08:17:26 +01:00
Diggory Hardy
93ade1a009 fill_via_chunks: better value names 2021-09-14 08:11:53 +01:00
Diggory Hardy
9972046a11 fill_via_chunks: make a generic function 2021-09-14 08:10:37 +01:00
Vinzent Steinberg
6e6b4ce80b
Merge pull request #1181 from kazcw/master
chacha: safer outputting
2021-09-13 15:20:37 +02:00
Diggory Hardy
ceb25f86ce
Merge pull request #1153 from rozbb/propagate-std-getrandom
Propagate std and getrandom features
2021-09-13 09:40:15 +01:00
Kaz Wesley
aa5b0e070f Revert "chacha: safer outputting: 0..4 loop"
This reverts commit 7d9607a3a3ea6816f7105e508b79cfe664ecc4d4.

(Had a bug, after fixing the bug perf was poor)
2021-09-12 13:02:21 -07:00
Kaz Wesley
7d9607a3a3 chacha: safer outputting: 0..4 loop 2021-09-12 12:53:11 -07:00
Kaz Wesley
7fa7c43170 chacha: safer outputting: manually unroll the loop 2021-09-12 09:25:01 -07:00
Vinzent Steinberg
e359b27c68
Merge pull request #1160 from vks/fix-unsafe-block
Fix unsoundness in `<BlockRng64 as RngCore>::next_u32`, with less `unsafe` code
2021-09-12 16:57:59 +02:00
Vinzent Steinberg
90b89cdbb2 Merge branch 'master' into fix-unsafe-block 2021-09-12 16:44:52 +02:00
Vinzent Steinberg
64ac013b2a Improve BlockRng64 test 2021-09-12 16:43:14 +02:00
Vinzent Steinberg
8006bc35e7 Use odd increments 2021-09-12 16:40:36 +02:00