Skip to content

Commit 889beac

Browse files
authored
Update CHANGELOGs and prepare rand 0.9.0-alpha.0 (rust-random#1395)
Also: add pull-request template
1 parent 528a2db commit 889beac

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

CHANGELOG.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,26 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.5.0] - unreleased
7+
## [0.5.0-alpha.0] - 2024-02-18
8+
This is a pre-release. To depend on this version, use `rand_distr = "=0.5.0-alpha.0"` to prevent automatic updates (which can be expected to include breaking changes).
9+
10+
### Additions
11+
- Make distributions comparable with `PartialEq` (#1218)
12+
- Add `WeightedIndexTree` (#1372)
13+
14+
### Changes
15+
- Target `rand` version `0.9.0-alpha.0`
816
- Remove unused fields from `Gamma`, `NormalInverseGaussian` and `Zipf` distributions (#1184)
917
This breaks serialization compatibility with older versions.
10-
- Upgrade Rand
11-
- Fix Knuth's method so `Poisson` doesn't return -1.0 for small lambda
12-
- Fix `Poisson` distribution instantiation so it return an error if lambda is infinite
1318
- `Dirichlet` now uses `const` generics, which means that its size is required at compile time (#1292)
1419
- The `Dirichlet::new_with_size` constructor was removed (#1292)
1520

21+
### Fixes
22+
- Fix Knuth's method so `Poisson` doesn't return -1.0 for small lambda (#1284)
23+
- Fix `Poisson` distribution instantiation so it return an error if lambda is infinite (#1291)
24+
- Fix Dirichlet sample for small alpha values to avoid NaN samples (#1209)
25+
- Fix infinite loop in `Binomial` distribution (#1325)
26+
1627
## [0.4.3] - 2021-12-30
1728
- Fix `no_std` build (#1208)
1829

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rand_distr"
3-
version = "0.5.0"
3+
version = "0.5.0-alpha.0"
44
authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -27,15 +27,15 @@ std_math = ["num-traits/std"]
2727
serde1 = ["serde", "rand/serde1"]
2828

2929
[dependencies]
30-
rand = { path = "..", version = "0.9.0", default-features = false }
30+
rand = { path = "..", version = "=0.9.0-alpha.0", default-features = false }
3131
num-traits = { version = "0.2", default-features = false, features = ["libm"] }
3232
serde = { version = "1.0.103", features = ["derive"], optional = true }
3333
serde_with = { version = "3.6.1", optional = true }
3434

3535
[dev-dependencies]
36-
rand_pcg = { version = "0.4.0", path = "../rand_pcg" }
36+
rand_pcg = { version = "=0.9.0-alpha.0", path = "../rand_pcg" }
3737
# For inline examples
38-
rand = { path = "..", version = "0.9.0", features = ["small_rng"] }
38+
rand = { path = "..", version = "=0.9.0-alpha.0", features = ["small_rng"] }
3939
# Histogram implementation for testing uniformity
4040
average = { version = "0.13", features = [ "std" ] }
4141
# Special functions for testing distributions

0 commit comments

Comments
 (0)