Skip to content

sorairolake/sfc-rs

sfc-rs

CI Version MSRV Docs License

sfc-rs (sfc-prng) is an implementation of Chris Doty-Humphrey's Small Fast Counting PRNGs written in pure Rust.

This crate provides:

  • sfc16
  • sfc32
  • sfc64

This crate supports version 4 of the SFC algorithms.

Usage

Run the following command in your project directory:

cargo add sfc-prng

Crate features

serde

Enables the serde crate.

no_std support

This crate supports no_std mode.

Documentation

See the documentation for more details.

Minimum supported Rust version

The minimum supported Rust version (MSRV) of this library is v1.85.0.

Source code

The upstream repository is available at https://github.com/sorairolake/sfc-rs.git.

Changelog

Please see CHANGELOG.adoc.

Contributing

Please see CONTRIBUTING.adoc.

Acknowledgment

This crate depends on the rand_core crate created by the Rand project.

The implementation of this crate is based on the reference implementation provided by PractRand version pre0.95, which is licensed under the public domain.

License

Copyright (C) 2025 Shun Sakai (see AUTHORS.adoc)

This library is distributed under the terms of either the Apache License 2.0 or the MIT License.

This project is compliant with version 3.3 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.

About

Chris Doty-Humphrey's SFC PRNGs written in pure Rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •