Vinzent Steinberg
9855f37930
Pin rayon and rayon-core to support MSRV 1.61
2024-04-26 14:22:00 +02:00
Vinzent Steinberg
6f917e1f16
Move rand benches to their own crate
2024-04-26 14:21:28 +02:00
Vinzent Steinberg
d507f7e81b
Upgrade criterion
2024-04-26 13:36:41 +02:00
Diggory Hardy
d42daabf65
Add "bug report" issue template ( #1436 )
2024-04-10 16:29:51 +01:00
Diggory Hardy
eae3228c63
rand_distr/std_math: add note regarding other dependents ( #1421 )
2024-04-10 15:45:58 +01:00
Michael Dyer
bca078e929
Optimize imports ( #1430 )
2024-04-05 16:04:30 +01:00
Michael Dyer
21a1ce1be6
Merge pull request #1431 from MichaelOwenDyer/put-x86-macro-behind-x86-config
...
Put macro `x86_intrinsic_impl` behind x86 configuration
2024-04-04 16:29:15 +02:00
Michael Dyer
2f14aec3f4
Put macro x86_intrinsic_impl
behind x86 configuration guard
2024-04-03 19:16:18 +02:00
dependabot[bot]
2f6fee9ca3
Bump actions/configure-pages from 4 to 5 ( #1427 )
2024-04-02 15:48:45 +01:00
Michael Dyer
7b37c15cb7
Add methods weight, weights, and total_weight to weighted_index.rs ( #1420 )
2024-04-02 15:47:17 +01:00
dependabot[bot]
05189751b5
Update average requirement from 0.14 to 0.15 ( #1426 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 15:45:29 +01:00
Diggory Hardy
0e626c7436
Cleaner README, remove MSRV shields ( #1417 )
2024-03-25 14:56:17 +00:00
Diggory Hardy
2eaf8545d4
Bump the MSRV to 1.61.0 ( #1416 )
2024-03-22 12:33:33 +00:00
Diggory Hardy
a457907255
Use Simd::wrapping_neg ( #1414 )
2024-03-22 07:23:16 +00:00
Diggory Hardy
1015e709da
Prepare 0.9.0-alpha.1 ( #1413 )
2024-03-18 19:08:37 +00:00
Diggory Hardy
4cbbb340ad
Remove automatic (delayed) reseed-on-fork ( #1379 )
...
* benches/generators.rs: standardize thread_rng benchmarks
* Remove cfgs from examples
* Remove ReadRng
* Add ThreadRng::reseed and doc to use
* Remove fork protection from ReseedingRng; remove libc dep
* Enable ReseedingRng without std
* Move ReseedingRng up; remove module rand::rngs::adapter
2024-03-18 17:41:15 +00:00
dependabot[bot]
b45e892084
Update average requirement from 0.13 to 0.14 ( #1388 )
2024-03-18 09:28:20 +00:00
dependabot[bot]
be75bf5b90
Update zerocopy requirement from =0.8.0-alpha.5 to =0.8.0-alpha.6 ( #1401 )
2024-03-18 09:27:47 +00:00
TheIronBorn
769bcb6e4c
Document more crate feature usage ( #1411 )
2024-03-18 08:42:42 +00:00
acceptacross
4ed1b20be0
chore: fix typos ( #1407 )
...
Signed-off-by: acceptacross <csqcqs@gmail.com>
2024-03-11 10:56:13 +00:00
Justus Fluegel
7ed92ee278
Add .choices() method to the Slice distribution ( #1402 )
...
Signed-off-by: Justus Fluegel <justusfluegel@gmail.com>
2024-03-07 08:39:45 +00:00
Michael Dyer
304048bdd9
Fix redundant import warnings ( #1405 )
2024-03-07 08:34:53 +00:00
Diggory Hardy
7ff0fc9e59
Add path for benchmark ( #1398 )
2024-02-18 17:51:59 +00:00
Diggory Hardy
b1427c6447
Disable rand_pcg's dev dependency on rand ( #1397 )
...
The circular dependency prevents publishing
2024-02-18 17:32:29 +00:00
Diggory Hardy
5577003615
Update CHANGELOGs and prepare rand 0.9.0-alpha.0 ( #1395 )
...
Also: add pull-request template
2024-02-18 17:02:05 +00:00
Diggory Hardy
8aa456cee9
Fix gh-pages.yml by deleting .lock file
...
This file is does not meet actions/upload-pages-artifact permission requirements.
2024-02-18 11:33:35 +00:00
Diggory Hardy
2e13129545
Bump actions upload-pages-artifact, deploy-pages ( #1396 )
2024-02-18 10:47:32 +00:00
dependabot[bot]
923bcf1711
Update serde_with requirement from 1.14.0 to 3.6.1 ( #1392 )
2024-02-18 10:20:46 +00:00
Diggory Hardy
dba696e9f1
Rename WeightedError → WeightError; add IndexedRandom, IndexedMutRandom ( #1382 )
...
* Remove deprecated module rand::distributions::weighted
* WeightedTree: return InvalidWeight on not-a-number
* WeightedTree::try_sample return AllWeightsZero given no weights
* Rename WeightedError -> WeightError and revise variants
* Re-export WeightError from rand::seq
* Revise errors of rand::index::sample_weighted
* Split SliceRandom into IndexedRandom, IndexedMutRandom and SliceRandom
2024-02-15 08:17:45 +00:00
dependabot[bot]
ef245fd582
Update special requirement from 0.8.1 to 0.10.3 ( #1384 )
2024-02-13 11:33:39 +00:00
dependabot[bot]
97556c4c76
Bump actions/cache from 3 to 4 ( #1385 )
2024-02-13 11:15:41 +00:00
Diggory Hardy
e5a366d07f
Update zerocopy; trim unused methods ( #1393 )
...
* Remove mention of stdsimd
* Move fns FloatSIMDUtils::replace, extract to new cfg-gated trait FloatSIMDScalarUtils
* Remove unused utility methods on floats, bool
* Remove unused import
* Update to zerocopy 0.8.0-alpha.5
* Remove unneeded import of Float
2024-02-13 11:13:57 +00:00
dependabot[bot]
58add64ba4
Bump actions/checkout from 3 to 4 ( #1386 )
2024-02-13 08:39:03 +00:00
dependabot[bot]
1ad2eece9d
Bump actions/configure-pages from 2 to 4 ( #1389 )
2024-02-13 08:21:36 +00:00
Vasiliy Taranov
88b2acca67
Add dependabot ( #1383 )
2024-02-13 07:56:18 +00:00
Makro
f827c006b5
Add WeightedIndexTree to dist_randr ( #1372 )
...
Add WeightedIndexTree to rand_distr
Co-authored-by: xmakro <makro@>
2024-02-08 15:00:58 +00:00
bjorn3
1f4507a8e1
Allow new warning on recent nightly versions ( #1376 )
2024-01-26 15:15:32 +00:00
Diggory Hardy
1db3aa416c
Replace SeedableRng impl for SmallRng with inherent fns ( #1368 )
...
* Simplify redundant doc-link
* Remove impl of SeedableRng for SmallRng
* Fix SeedableRng::Seed type for StdRng
* SmallRng: do not expect thread_rng
* Make SmallRng::from_thread_rng infallible
* Fix benchmarks (SmallRng does not have from_entropy)
2024-01-05 10:58:22 +00:00
Diggory Hardy
e9a27a8e68
Trap weighted index overflow ( #1353 )
...
* WeightedIndex: add test overflow (expected to panic)
* WeightedIndex:🆕 trap overflow in release builds only
* Introduce trait Weight
* Update regarding nightly SIMD changes
2023-12-30 11:14:38 +00:00
Vinzent Steinberg
3c2e82f450
Merge pull request #1352 from vks/pcg-example
...
Add example for initializing a PCG RNG
2023-12-15 08:32:46 +01:00
Vinzent Steinberg
14d036c60c
Add example for using rand ( #1347 )
2023-12-14 22:05:17 +01:00
Vinzent Steinberg
e0292f31c0
Merge pull request #1363 from vks/clippy
...
Fix clippy warnings
2023-12-14 21:40:46 +01:00
Vinzent Steinberg
c427cff1d5
Fix clippy warnings
2023-12-14 08:50:57 +01:00
Vinzent Steinberg
1cc3f881a1
Update changelog
2023-11-27 21:54:34 +01:00
Vinzent Steinberg
1924e120cc
Fix doc test to work without rand
and from_entropy
2023-11-27 21:52:23 +01:00
Alex Saveau
ef89cbefaf
Support using std without getrandom or rand_chacha ( #1354 )
...
Support using std without getrandom or rand_chacha
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2023-11-06 08:15:07 +00:00
Vinzent Steinberg
870c6791bb
Merge pull request #1349 from joshlf/remove-unsafe
...
Use zerocopy to replace some unsafe code
2023-11-02 20:23:56 +01:00
Vinzent Steinberg
240cd439fc
Mention that gen_range
may overflow for floats ( #1337 ) ( #1351 )
2023-10-31 08:53:02 +00:00
Vinzent Steinberg
d9a89c8f13
Add example for initializing a PCG RNG ( #1347 )
2023-10-30 21:24:34 +01:00
OldEnglishSheepdog
d0499f0a26
Correcting method name in comment ( #1350 )
...
Co-authored-by: Detlef <none@none.org>
2023-10-30 09:39:38 +00:00