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 |
|
Kaz Wesley
|
eb324041b9
|
chacha: safer outputting
|
2021-09-11 15:07:15 -07:00 |
|
Diggory Hardy
|
9684ebf1bf
|
fill_via_chunks: use safe code via chunks_exact_mut on BE
This (specifically, using chunks_exact_mut) actually
improves performance substantially.
|
2021-09-11 20:26:48 +01:00 |
|
Diggory Hardy
|
9a00a43d84
|
Merge pull request #1178 from dhardy/work
ReseedingRng: more robust fork handling
|
2021-09-11 20:18:00 +01:00 |
|
Vinzent Steinberg
|
4addc7513b
|
Use slightly more random DummyRng
|
2021-09-11 19:22:37 +02:00 |
|
Vinzent Steinberg
|
7533de0774
|
Fix reference in docs
|
2021-09-11 19:06:11 +02:00 |
|
Vinzent Steinberg
|
da3b367d48
|
Merge branch 'fix-clippy' into fix-unsafe-block
|
2021-09-11 18:47:10 +02:00 |
|
Diggory Hardy
|
0435f0fff3
|
Update changelog
|
2021-09-11 16:55:53 +01:00 |
|
Diggory Hardy
|
40c49c2d12
|
ReseedingRng: more robust fork handling
|
2021-09-11 15:55:04 +01:00 |
|
Vinzent Steinberg
|
b7380fde25
|
rand: Update changelog
|
2021-09-11 00:01:03 +02:00 |
|
Vinzent Steinberg
|
698ebe0535
|
Fix a clippy warning
|
2021-09-10 23:29:44 +02:00 |
|
Vinzent Steinberg
|
fcc5baf315
|
Merge pull request #1173 from bhgomes/no-std-fix
Fix no_std compatibility issues
|
2021-09-10 23:27:09 +02:00 |
|
Vinzent Steinberg
|
2bddede4b7
|
Merge branch 'master' into no-std-fix
|
2021-09-10 21:49:28 +02:00 |
|
Vinzent Steinberg
|
0932a58271
|
Merge pull request #1175 from connec/stable-test-all-features
Add `min_const_gen` to "all stable features" test invocation
|
2021-09-10 21:47:39 +02:00 |
|
Chris Connelly
|
9cbcfe4725
|
Split all feature test invocation for MSRV and non-MSRV
Since const generics are not stable in Rust 1.36.0, we cannot use the
`min_const_gen` feature when testing the MSRV.
|
2021-09-10 17:30:13 +01:00 |
|
Vinzent Steinberg
|
78ac3f2046
|
Merge pull request #1176 from vks/fix-nightly
Fix tests on nightly
|
2021-09-10 18:13:10 +02:00 |
|
Vinzent Steinberg
|
85c9bc57bf
|
Fix tests on nightly
This basically requires fixing `packed_simd_2` by upgrading the minimal
version.
|
2021-09-10 15:23:11 +02:00 |
|
Vinzent Steinberg
|
cf00e375fe
|
Merge pull request #1174 from saona-raimundo/master
SkewNormal distribution implementation
|
2021-09-10 15:13:32 +02:00 |
|