243 Commits

Author SHA1 Message Date
Diggory Hardy
ca1b7c429a rand_core::Error: replace internal representation and adjust API
This is a significant breaking change, discussed in #800.
Also rand::rngs::adapter::read is no longer publically exported.
2019-05-28 10:27:26 +01:00
Diggory Hardy
959043d7d6 rand_core::Error: support using a code also with std 2019-05-17 17:52:22 +01:00
Diggory Hardy
f42abf8ff1 Make Error::msg a private field 2019-05-16 17:14:33 +01:00
Diggory Hardy
b61e61b3a7 Move from_entropy to SeedableRng and update RngCore doc 2019-05-16 17:13:07 +01:00
Diggory Hardy
a4e5f019f7 Support From<getrandom::Error> for rand_core::Error
This gives us an alternative to feature-specific behaviour
2019-05-16 17:13:07 +01:00
Diggory Hardy
6daae3e953 rand_core: remove ErrorKind enum
This is virtually no usage, thus it was decided to remove
2019-05-16 17:13:07 +01:00
Diggory Hardy
8f186ab5ac
Merge pull request #784 from RalfJung/as-byte-slice-mut
fix extracting a u64 on little-endian CPUs
2019-04-23 15:18:31 +01:00
Ralf Jung
b20092369f fix extracting a u64 on little-endian CPUs 2019-04-22 20:09:42 +02:00
Diggory Hardy
0c0f9311bb Remove specialisations of fill_bytes for block RNGs
These specialisations relied on casting a u8 byte slice to
a u32 or u64 slice, which is UB due to alignment requirements.
2019-04-22 11:42:07 +01:00
Diggory Hardy
476cb6df79
Merge pull request #780 from RalfJung/as-byte-slice-mut
fix AsByteSliceMut using raw pointers with bad provenance
2019-04-20 12:52:28 +01:00
Ralf Jung
d9c611f91e fix unaligned and illegal-provenance reads in next_u64 2019-04-19 17:43:19 +02:00
Diggory Hardy
33002ecd58 Add explanations of cross-version crate compatibility to README 2019-04-18 10:11:58 +01:00
Diggory Hardy
67069d161c Bump MSRV to 1.32.0 2019-03-28 10:51:29 +00:00
Xidorn Quan
51821a9417 Add '/' to all documents on github.io 2019-03-10 11:09:28 +11:00
Diggory Hardy
67c856bfe9 Disable std feature by default in rand_core and rand_jitter
Implements #702
Resolves #645
2019-01-23 12:50:20 +00:00
newpavlov
300b84b37f fix errors 2019-01-14 14:45:48 +03:00
Артём Павлов [Artyom Pavlov]
b4513063af Use RFC 1946 for doc links 2019-01-11 03:03:32 +03:00
Diggory Hardy
fdd78bc2e2 Switch documentation links primarily to rust-random.github.io; revise shields 2018-11-22 19:27:08 +00:00
Vinzent Steinberg
c869087c50 Use rust-random for appveyor 2018-09-27 11:44:07 +02:00
Diggory Hardy
a55ba3feb4 Update AppVeyor build status link 2018-09-25 14:19:37 +01:00
Diggory Hardy
d6501990b3 Merge branch '0.5' 2018-09-24 12:39:49 +01:00
Diggory Hardy
4685924f30
Merge pull request #599 from dhardy/merge-0.5
Merge 0.5
2018-09-24 12:18:32 +01:00
Diggory Hardy
7dd05ed335 Prepare rand_core 0.3 release 2018-09-22 10:31:38 +01:00
Diggory Hardy
459571ce2a Backport changes from master 2018-09-22 10:17:17 +01:00
Diggory Hardy
26b87964b6 seed_from_u64: tweak documentation and test 2018-09-17 10:14:28 +01:00
Diggory Hardy
21cbc9b26a Isaac*Rng: replace new_from_u64 with seed_from_u64 2018-09-17 10:14:28 +01:00
Diggory Hardy
e1d059fab2 Implement SeedableRng::seed_from_u64 2018-09-17 10:14:08 +01:00
Diggory Hardy
a50042d9d4 Follow up on #591: update authors and add new copyright where missed 2018-09-17 10:06:28 +01:00
Diggory Hardy
92aa49804b Remove references to COPYRIGHT file which are not needed
We have no sub-packages under different licences
2018-09-10 15:37:36 +01:00
Diggory Hardy
16291b67ec seed_from_u64: tweak documentation and test 2018-09-03 17:14:51 +01:00
Diggory Hardy
e7b50109af Fix COPYRIGHT file and copy to sub-projects 2018-08-24 09:22:35 +01:00
Diggory Hardy
d291f71fd4 Add COPYRIGHT file and update copyright & licence notices 2018-08-16 15:38:40 +01:00
Diggory Hardy
f7497f77a4 Update paths due to relocation
Repo moved from rust-lang-nursery to rust-random
AppVeyor CI is now managed by dhardy
2018-08-13 18:00:37 +01:00
Diggory Hardy
f2d813ec2f Isaac*Rng: replace new_from_u64 with seed_from_u64 2018-07-16 11:13:59 +01:00
Diggory Hardy
d38fd3e365 Implement SeedableRng::seed_from_u64 2018-07-16 11:13:59 +01:00
BC Ko
a3567eeab6
added license badge for rand_core 2018-06-29 06:59:46 -07:00
Diggory Hardy
91a35aedd1 Update rand_core version number and changelog for 0.2.1. 2018-06-07 21:09:33 +01:00
quininer
ac91c3ae8f impl CryptoRng for references CryptoRng 2018-05-22 21:15:54 +08:00
Paul Dicker
66c7025b56 Update version numbers: rand_core 0.2.0 and rand 0.5.0 2018-05-21 15:27:02 +02:00
Paul Dicker
55bc5cd8b7 Update changelog 2018-05-17 19:02:53 +02:00
Paul Dicker
cfe4007c82 Update rand_core doc url version 2018-05-17 19:02:53 +02:00
Diggory Hardy
7d09b36068 Update version numbers: 0.2.0-pre.0 and 0.5.0-pre.2 releases 2018-05-15 12:20:33 +01:00
Paul Dicker
8238d4a9ba Remove unnecessary rust annotation from doc code 2018-05-15 09:50:46 +02:00
Diggory Hardy
904d1fe5d2 Specify value consumption order for block-based RNGs 2018-05-13 15:24:00 +01:00
Diggory Hardy
cdae62e677 Rename rngs::adaptor → rngs::adapter
The latter appears to be the common spelling.
2018-05-12 08:21:10 +02:00
Diggory Hardy
45136b3022 Improve BlockRngCore doc 2018-05-10 13:58:32 +01:00
Diggory Hardy
4b84f489e0 Move BlockRng* to new rand_core::block module; don't export from rand
These are almost exclusively for implementation of certain types of RNG,
therefore exposing BlockRngCore in rand is not useful.
2018-05-10 11:35:24 +01:00
Diggory Hardy
16f149e2a8 Move all external RNGs to the rngs module 2018-05-10 10:31:55 +01:00
Paul Dicker
7959fbf63f Implement std::io::Read for RngCore 2018-05-08 13:59:51 +02:00
Paul Dicker
335c390787 Implement From<Error> for io::Error 2018-05-08 13:56:16 +02:00