Commit Graph

2916 Commits

Author SHA1 Message Date
fossdd a49e4ad730 Remove notice by Apache License Authors
The notice that we can add a license notice before every file can be ignored, as rand already has a own copyright notice.
2021-07-26 09:17:42 +00:00
Diggory Hardy 81b8a7542b Merge pull request #1150 from rodrimati1992/master
Added docs about rand's use of const generics
2021-07-26 07:40:59 +01:00
rodrimati1992 d4256fcc6d Added min_const_gen feature to README 2021-07-25 18:53:19 -03:00
rodrimati1992 a36047f0dc Documented needed crate feature 2021-07-25 18:44:25 -03:00
rodrimati1992 82b819ab67 Documented needed crate feature 2021-07-25 18:42:43 -03:00
Diggory Hardy 46e11cd8e5 Merge pull request #1142 from vks/emscripten-i128
Remove special cases for emscripten
2021-07-22 19:51:27 +01:00
Vinzent Steinberg 1145ba0200 Update CHANGELOG.md 2021-07-13 15:23:39 +02:00
Patrick Chieppe fb6390f9d3 Fix build on non-32/64-bit architectures (#1144)
* Impl WideningMultiply for 16-bit pointers
* Add AVR CI test job
2021-07-13 15:18:57 +02:00
Diggory Hardy 52407e7ccc Merge pull request #1141 from dhardy/work
Add serde1 feature for rand_distr
2021-07-09 13:27:18 +01:00
Diggory Hardy af751dfeac Merge branch 'master' into work 2021-07-09 13:27:09 +01:00
Diggory Hardy 564a504d59 Update changelog 2021-07-09 09:33:10 +01:00
Vinzent Steinberg c60b7cd21b Remove special cases for emscripten
Because emscripten supports 128-bit integers now, we no longer have to
add special cases for it. In particular, we can now use ChaCha12 on all
platforms.
2021-07-08 16:29:02 +02:00
Diggory Hardy 0e515d7adc Update rand_distr readme 2021-07-08 15:16:53 +01:00
Diggory Hardy 9bd8017e20 impl serde for rand_distr::WeightedAliasIndex; fix bounds for Uniform 2021-07-08 15:10:46 +01:00
Diggory Hardy b9f0c54a2c rand_distr: derive serde support (easy cases) 2021-07-08 15:10:39 +01:00
Diggory Hardy b27c38372d rand_distr: add serde1 feature 2021-07-08 15:10:31 +01:00
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