Diggory Hardy
19169cbce9
Bump MSRV to 1.56 (Edition 2021) ( #1269 )
...
* Bump MSRV to 1.56 (Edition 2021)
* Apply Clippy suggestions
* Bump edition and add rust-version field to Cargo.toml
* CI AVR test: unpin nightly rust version
* Disable AVR test
* Bump crate version numbers for a breaking release
2022-12-06 19:01:10 +00:00
Frank Steffahn
21131af61d
Remove redundant AsRef/AsMut bounds ( #1207 )
2022-11-14 11:37:49 +00:00
Diggory Hardy
9720f110a6
Update GitHub Actions ( #1263 )
...
* examples/rayon-monte-carlo.rs: remove execute bit of file metadata
* Document in README that MSRV is 1.51.0
This was changed in #1246
* Update GitHub Actions
2022-11-10 15:36:40 +00:00
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
Chris Beck
3543f4b025
Make CryptoRngCore
trait imply CryptoRng
as well ( #1230 )
2022-05-19 17:55:31 +01: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
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
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
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
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
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
Vinzent Steinberg
4addc7513b
Use slightly more random DummyRng
2021-09-11 19:22:37 +02:00
Vinzent Steinberg
da3b367d48
Merge branch 'fix-clippy' into fix-unsafe-block
2021-09-11 18:47:10 +02:00
Vinzent Steinberg
4e99eeed49
Try to fix test on MIPS
2021-09-07 20:55:36 +02:00
Vinzent Steinberg
0c5a5f9d41
Simplify dummy RNG for BlockRng
test
...
We no longer implement the non-block step RNG.
2021-09-07 18:25:18 +02:00
Vinzent Steinberg
0f0d66f947
Add license header
2021-09-05 20:18:44 +02:00
Vinzent Steinberg
d8fd7ba6c0
Fix BlockRng::next_u32
2021-09-05 20:17:26 +02:00
Vinzent Steinberg
251bda1eb4
Add test for BlockRng
and BlockRng64
2021-09-05 20:17:12 +02:00
Vinzent Steinberg
ee1aacd257
Merge pull request #1164 from vks/spelling
...
Fix spelling
2021-08-25 20:31:26 +02:00
Vinzent Steinberg
36c16383f8
Fix more spelling mistakes
2021-08-24 20:44:31 +02:00
Vinzent Steinberg
2a115e183b
Merge branch 'master' into remove-apache-notice
2021-08-24 20:42:11 +02:00
Vinzent Steinberg
564055aed9
Remove notice by Apache License Authors for all other crates
2021-08-24 20:39:31 +02:00
Vinzent Steinberg
eb1de23ff5
Fix spelling
2021-08-24 18:09:00 +02:00
Vinzent Steinberg
d5dbf47c25
Fix BlockRng::next_*
logic
2021-08-24 17:04:10 +02:00
Vinzent Steinberg
b86ec29224
BlockRng::next_u32: Make sure to use half-entry at the previous index
2021-08-23 17:55:18 +02:00
Vinzent Steinberg
e73fe3a4bc
Simplify cfg logic
2021-08-23 17:49:59 +02:00
Vinzent Steinberg
db6e81f34e
Bump versions
2021-08-19 20:49:50 +02:00
Vinzent Steinberg
e85a8759aa
rand_core: Update changelog
2021-08-19 20:35:45 +02:00
Vinzent Steinberg
9b9a89f055
Fix unsoundness in <BlockRng64 as RngCore>::next_u32
...
Many thanks to @joshlf for reporting this issue.
Fixes #1158 .
2021-08-19 20:20:42 +02:00
Diggory Hardy
32343a6f37
Rearrange Cargo.toml
2021-08-17 09:55:53 +01:00
Dirk Stolle
277e5b0e9d
fix some typos
2021-06-15 22:27:37 +02:00
Diggory Hardy
1bfc53d57f
Update changelogs and bump version numbers
2021-06-14 10:04:59 +01:00
Diggory Hardy
f6bbfcfa89
serde for BlockRng, ReseedingRng and ReadRng
2021-05-27 10:17:01 +01:00
Vinzent Steinberg
67f491a7a5
rand_core: Fix clippy warnings
2021-05-08 21:35:09 -03:00
Alexander Batischev
25c1c49541
RngCore: explain what a pathological RNG will break
...
Cf. https://github.com/rust-random/rngs/pull/25#discussion_r622770225 .
2021-04-30 14:41:07 +03:00
Tyler Mandry
2cf5120dd5
Bump to 0.6.2
2021-02-12 17:47:10 -08:00
Tyler Mandry
390a7b1049
Fix assertions inside read_{u32,u64}_into
...
Unless I'm mistaken the size multiplier was on the wrong side, making the assertions too permissive. This could have resulted in destination buffers not being fully populated.
2021-02-10 18:55:08 -08:00
Diggory Hardy
594aed8291
seed_from_u64: use newpavlov's suggestion
2021-01-02 10:17:31 +00:00
Diggory Hardy
eb4b8a44d3
Fix #1082 (seed_from_u64 with non multiple of 4)
2021-01-01 14:34:38 +00:00
Taiki Endo
a63eb3ad36
Prepare rand_core 0.6.1
2020-12-31 23:06:56 +09:00