Skip to content

refactor: deprecate RAND_MAX constant in FreeBSD#5119

Open
dybucc wants to merge 1 commit into
rust-lang:mainfrom
dybucc:rand-max-deprecation
Open

refactor: deprecate RAND_MAX constant in FreeBSD#5119
dybucc wants to merge 1 commit into
rust-lang:mainfrom
dybucc:rand-max-deprecation

Conversation

@dybucc
Copy link
Copy Markdown
Contributor

@dybucc dybucc commented May 28, 2026

Description

This constant does not seem to have had any changes since a binding was defined in all modules but
the FreeBSD tree.

This deprecation may or may not be worth it, as the only real change was between FreeBSD 12 and
FreeBSD 13.

This type of constant seems like the "delimitter" value mentioned in #3131, so that's why I thought
it could be marked for deprecation.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 28, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This constant does not seem to have had any changes since a binding was
defined in all modules but the FreeBSD tree.

This deprecation may or may not be worth it, as the only real change was
between FreeBSD 12 and FreeBSD 13.
@dybucc dybucc force-pushed the rand-max-deprecation branch from 4346f10 to ddee909 Compare May 31, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants