Skip to content

rand v0.9.5: backport #1790 and #1791#1802

Closed
dhardy wants to merge 7 commits into
masterfrom
push-tqkwtkvprnpn
Closed

rand v0.9.5: backport #1790 and #1791#1802
dhardy wants to merge 7 commits into
masterfrom
push-tqkwtkvprnpn

Conversation

@dhardy

@dhardy dhardy commented Jul 2, 2026

Copy link
Copy Markdown
Member
  • Added a CHANGELOG.md entry

Summary

Backport #1790 to rand 0.9.5.

Motivation

This changes address an unsoundness issue: code like the following could yield a Distribution object yielding invalid char values when sampled (unsound):

        let json = r#"{"sampler":{"low":4294967200,"range":0,"thresh":0}}"#;
        let result = serde_json::from_str::<Uniform<char>>(json);

@dhardy dhardy closed this Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant