1 unstable release

Uses old Rust 2015

0.0.0 Jul 8, 2018

#105 in #rng

MPL-2.0 license

32KB
503 lines

XD lol

Crates.io Crates.io license Coverage Status

Linux: Build status Windows: Build status

 


THIS LIBRARY IS NOT READY FOR USE IN PRODUCTION OR WITH ANYTHING THAT NEEDS TO BE SECURE

If you need something to test randomness unfortunately I am not aware of any existing library for unit-testing or Rust specifically. Take a look at either Dieharder or ENT.

I am only pushing to crates.io now to easily include it in my project it is intended to be used in easily, and to test the API as it is developed in it.


 

Randomness tests.

XD lol, it is what people type when they think they are being random.

For testing sequences of bytes in unit tests or stored in files and producing reports of the results. It is useful for evaluating pseudorandom number generators for encryption and statistical sampling applications, compression algorithms, and other applications.

Usage

Add xdlol as a dependency in your Cargo.toml to use from crates.io:

[dependencies]
xdlol = "0.0.0"

Then add extern crate xdlol; to your crate root and run cargo build or cargo update && cargo build for your project. Detailed documentation for releases can be found on docs.rs and the bleeding edge docs for the latest GitLab repository version can be found on GitLab pages.

Example

extern crate xdlol;
use xdlol;

Examples can also be ran directly:

$ cargo run --example yes_no_with_defaults
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/yes_no_with_defaults`

See examples for more.

Contributing

The project is mirrored to GitHub, but all development is done on GitLab. Please use the GitLab issue tracker. Don't have a GitLab account? Just email incoming+starshell/xdlol@gitlab.com and those emails automatically become issues (with the comments becoming the email conversation).

To contribute to xdlol, please see CONTRIBUTING.

License

xdlol is distributed under the terms of the MPL 2.0 license. If this does not suit your needs for some reason please feel free to contact me, or open an issue.

See LICENSE.

Dependencies

~2.3–4MB
~80K SLoC