5 releases
new 0.1.4 | Mar 5, 2025 |
---|---|
0.1.3 | Feb 25, 2025 |
0.1.2 | Feb 23, 2025 |
0.1.1 | Feb 22, 2025 |
0.1.0 | Feb 19, 2025 |
#672 in Algorithms
504 downloads per month
29KB
548 lines
sfc-rs
sfc-rs (rand_sfc
) 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.
[!IMPORTANT] This crate is not part of the Rand project.
Usage
Run the following command in your project directory:
cargo add rand_sfc
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.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.
Dependencies
~215KB