From 708c004c02bb037de5c90f3ecd7f131ff72dcc29 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Sat, 15 Nov 2025 13:35:28 +0000 Subject: [PATCH 1/3] CI: add tests for rand_sfc --- .github/workflows/test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95389442..86bf3da6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,10 +81,11 @@ jobs: run: | cargo test --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml --all-features cargo test --target ${{ matrix.target }} --manifest-path rand_isaac/Cargo.toml --all-features - cargo test --target ${{ matrix.target }} --manifest-path rand_xorshift/Cargo.toml --all-features - cargo test --target ${{ matrix.target }} --manifest-path rand_xoshiro/Cargo.toml --all-features cargo test --target ${{ matrix.target }} --manifest-path rand_jitter/Cargo.toml --no-default-features cargo test --target ${{ matrix.target }} --manifest-path rand_jitter/Cargo.toml --all-features + cargo test --target ${{ matrix.target }} --manifest-path rand_sfc/Cargo.toml --all-features + cargo test --target ${{ matrix.target }} --manifest-path rand_xorshift/Cargo.toml --all-features + cargo test --target ${{ matrix.target }} --manifest-path rand_xoshiro/Cargo.toml --all-features test-cross: runs-on: ubuntu-latest @@ -112,9 +113,10 @@ jobs: run: | cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml --all-features cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_isaac/Cargo.toml --all-features + cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_jitter/Cargo.toml --all-features + cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_sfc/Cargo.toml --all-features cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_xorshift/Cargo.toml --all-features cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_xoshiro/Cargo.toml --all-features - cross test --no-fail-fast --target ${{ matrix.target }} --manifest-path rand_jitter/Cargo.toml --all-features test-miri: runs-on: ubuntu-latest @@ -129,6 +131,7 @@ jobs: run: | cargo miri test --manifest-path rand_hc/Cargo.toml --all-features cargo miri test --manifest-path rand_isaac/Cargo.toml --all-features + cargo miri test --manifest-path rand_sfc/Cargo.toml --all-features cargo miri test --manifest-path rand_xorshift/Cargo.toml --all-features cargo miri test --manifest-path rand_xoshiro/Cargo.toml --all-features MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --manifest-path rand_jitter/Cargo.toml From 4cedfb385ade88537fdf94e2ee7a291c2a63092f Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Sat, 15 Nov 2025 13:37:13 +0000 Subject: [PATCH 2/3] rand_sfc: bump the version number for 0.2.0-rc.0 --- rand_sfc/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_sfc/Cargo.toml b/rand_sfc/Cargo.toml index 0560a073..f20a9820 100644 --- a/rand_sfc/Cargo.toml +++ b/rand_sfc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rand_sfc" -version = "0.1.0" +version = "0.2.0-rc.0" authors = ["The Rand Project Developers"] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-random/rngs" From ad3abc5cf948e209cac57091668128f44b1cf58c Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Sat, 15 Nov 2025 13:48:05 +0000 Subject: [PATCH 3/3] Add a CHANGELOG to rand_sfc --- rand_sfc/CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rand_sfc/CHANGELOG.md diff --git a/rand_sfc/CHANGELOG.md b/rand_sfc/CHANGELOG.md new file mode 100644 index 00000000..af0b082c --- /dev/null +++ b/rand_sfc/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## Unreleased + +This is a new implementation by [@tertu-m](https://github.com/tertu-m) and [@dhardy](https://github.com/dhardy/). The prior implementation has been renamed to [sfc-prng](https://crates.io/crates/sfc-prng). + +Compared to the prior implementation: + +### Changed + +- Value-stability is not preserved since constructors use a different number of mixing rounds + +### Removed + +- The `new` and `new_u64` constructors are not included