Commit Graph

2900 Commits

Author SHA1 Message Date
Vinzent Steinberg 8a07c93e4a Merge pull request #1138 from striezel-stash/fix-typos
fix some typos
2021-06-15 19:04:45 -03:00
Dirk Stolle 277e5b0e9d fix some typos 2021-06-15 22:27:37 +02:00
Diggory Hardy 8792268dfe Merge pull request #1137 from rust-random/work2
Prepare rand 0.8.4 release, core 0.6.3, distr 0.4.1, pcg 0.3.1, hc 0.3.1
2021-06-15 15:40:47 +01:00
Diggory Hardy 1bfc53d57f Update changelogs and bump version numbers 2021-06-14 10:04:59 +01:00
Diggory Hardy 453431146d Merge pull request #1133 from rust-random/work2
Add DistString trait
2021-06-14 09:24:49 +01:00
Diggory Hardy 81f1af8f4f Correct usage of reserve 2021-06-10 08:37:03 +01:00
Diggory Hardy fa17d1c1a2 Add comment to append_string for Standard 2021-06-10 08:35:44 +01:00
Diggory Hardy b4c1d66409 Add DistString 2021-06-10 08:35:44 +01:00
Diggory Hardy 1947c899f7 Move Distribution trait and associates to sub-module 2021-06-10 08:35:44 +01:00
Diggory Hardy 98a0339f99 Merge pull request #1135 from dhardy/work
Prepare rand_chacha v0.3.1 release
2021-06-09 20:45:04 +01:00
Diggory Hardy a7f8fb72d7 Prepare rand_chacha v0.3.1 release 2021-06-09 15:21:20 +01:00
Diggory Hardy 09d3df3119 Merge pull request #1130 from dhardy/work
serde for BlockRng, ReseedingRng and ReadRng
2021-06-07 19:54:44 +01:00
Diggory Hardy d167dd25d2 Deprecate ReadRng 2021-06-07 17:50:34 +01:00
Diggory Hardy e3bc4a1357 Do not impl serde for ReadRng or ReseedingRng 2021-06-07 17:50:03 +01:00
Diggory Hardy 66b163632e Merge pull request #1132 from rust-random/readme-wasm-note
README: add note regarding wasm32-unknown-unknown
2021-05-31 19:57:03 +01:00
Diggory Hardy d9c6a76048 README: add note regarding wasm32-unknown-unknown
Addresses #1110 and #1131.
2021-05-31 17:43:57 +01:00
Diggory Hardy 4726d328d6 Update minimum version of packed_simd_2 2021-05-27 11:00:13 +01:00
Diggory Hardy f6bbfcfa89 serde for BlockRng, ReseedingRng and ReadRng 2021-05-27 10:17:01 +01:00
Vinzent Steinberg 2732f2d6a8 Merge pull request #1116 from vks/criterion
rand_distr: Port benchmarks to Criterion
2021-05-24 22:42:31 -03:00
Vinzent Steinberg a6623ccbf7 rand_distr: Port benchmarks to Criterion
- The benchmarks are now living in their own crate. Therefore, this does
  not add any dev-dependencies to rand_distr.
- Instead of bytes per seconds, we now measure cycles per byte.

Refs #1039.
2021-05-24 13:31:02 -03:00
Diggory Hardy a97d94a0c8 Merge pull request #1129 from adamreichold/dist-map
Create a distribution by mapping the output of another one
2021-05-24 08:01:13 +01:00
Adam Reichold e0e13d79c6 Create a distribution by mapping the output of another one
This is useful if consumers are to be given an opaque type implementing the
Distribution trait, but the output of the provided implementations needs
additional post processing, e.g. to attach compile time units of measurement.
2021-05-23 18:42:18 +02:00
Vinzent Steinberg ea26d87379 Merge pull request #1124 from kazcw/chacha-serde
serde support for ChaCha
2021-05-22 01:32:08 -03:00
Vinzent Steinberg d9a8e16f16 Merge pull request #1127 from jakevossen5/master
fixed broken link to sample_iter
2021-05-13 23:13:55 -03:00
Vinzent Steinberg 36234a511e Merge pull request #1126 from vks/missing-copy
Add missing trait implementations
2021-05-13 23:12:16 -03:00
Vinzent Steinberg f14cdeac16 Update changelogs 2021-05-13 18:38:24 -03:00
Jake Vossen 35b098ea7a fixed broken link to sample_iter 2021-05-13 15:31:38 -06:00
Vinzent Steinberg f952177fcb Implement Error and Display for all errors 2021-05-13 16:22:37 -03:00
Vinzent Steinberg 17dbc4c8b7 Improve error formatting for WeightedError 2021-05-13 16:21:31 -03:00
Vinzent Steinberg 18bea4ca94 Add missing impls to *InverseGaussian errors 2021-05-13 14:52:23 -03:00
Vinzent Steinberg 2c32fe0b04 Implement Clone and Debug for {Normal,}InverseGaussian 2021-05-13 14:45:30 -03:00
Vinzent Steinberg 3f210e75f7 Implement Clone and Debug for Alphanumeric 2021-05-13 14:41:46 -03:00
Vinzent Steinberg 13738d337d Merge pull request #1107 from Lucretiel/slice-distribution
Initial implementation of Slice distribution
2021-05-12 14:51:36 -03:00
Vinzent Steinberg d86db46638 Merge branch 'master' into slice-distribution 2021-05-12 14:42:50 -03:00
Vinzent Steinberg 701c2c77c8 Slice::new: Fix return type documentation 2021-05-12 14:41:24 -03:00
Vinzent Steinberg 6bfc5a88e6 Slice: Derive Clone and Copy 2021-05-12 14:38:22 -03:00
Vinzent Steinberg 13949eeccd Update changelog 2021-05-12 13:59:41 -03:00
Vinzent Steinberg 4d4ae25541 Add missing licence header 2021-05-12 13:55:15 -03:00
Kaz Wesley 2f4bdfc2e1 chacha: hide numbered-param interface in guts 2021-05-12 09:49:38 -07:00
Kaz Wesley eb8823642f chacha: update changelog 2021-05-12 09:49:38 -07:00
Vinzent Steinberg 6d236fd8ef Merge pull request #1121 from vks/distr-test
Compare sampled normal distribution to PDF
2021-05-12 13:28:31 -03:00
Kaz Wesley 31a1d56aea chacha: add a test for serde format stability 2021-05-10 16:06:50 -07:00
Kaz Wesley d7a9e30314 chacha: test for serde roundtrip 2021-05-10 14:49:51 -07:00
Kaz Wesley 22029be3e3 chacha: optional serde
The format is semver-stable.
2021-05-10 14:49:41 -07:00
Kaz Wesley d22607b658 chacha: derive eq from a representation of the abstract state
Equivalent to the previous implementation, but clearer in intent. The
representable-abstract-state framework introduced here is
general-purpose and can also be used e.g. for serialization.
2021-05-10 14:42:37 -07:00
Kaz Wesley 7f3108db62 chacha: some new accessors
The new getters correspond to existing setters.
2021-05-10 14:37:16 -07:00
Vinzent Steinberg 66da6e633a Simplify loop 2021-05-09 14:55:35 -03:00
Vinzent Steinberg 76a7305f22 Define constant for histogram size 2021-05-09 14:45:09 -03:00
Vinzent Steinberg 8dac1dcb82 Fix Rust 1.36 compatibility 2021-05-08 21:46:02 -03:00
Vinzent Steinberg ab6f3dd5cd Add missing copyright headers 2021-05-08 21:39:31 -03:00