# HG changeset patch # User Simon Heath # Date 1591898016 14400 # Thu Jun 11 13:53:36 2020 -0400 # Node ID 9493d25f4d5e4a47765d060d041b02df43be78fa # Parent 14621ffd2b66c1b226eedf1bd326c94988878e80 # Parent d2ef488d454318fa19e7c10068eb8c90020e141e mergeded diff --git a/.build.yml b/.build.yml new file mode 100644 --- /dev/null +++ b/.build.yml @@ -0,0 +1,12 @@ +image: debian/buster +packages: + - cargo +sources: + - hg+https://hg.sr.ht/~icefox/oorandom +tasks: + - build: | + cd oorandom + cargo build + - test: | + cd oorandom + cargo test diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Crates.io](https://img.shields.io/crates/v/oorandom.svg)](https://crates.io/crates/oorandom) [![Docs](https://docs.rs/oorandom/badge.svg)](https://docs.rs/oorandom) +[![builds.sr.ht status](https://builds.sr.ht/~icefox/oorandom.svg)](https://builds.sr.ht/~icefox/oorandom?) # What is this? @@ -52,7 +53,8 @@ ```rust use oorandom; fn main() { - let rng = oorandom::Rand32::new(some_seed); + let some_seed = 4; + let mut rng = oorandom::Rand32::new(some_seed); println!("Your random number is: {}", rng.rand_float()); } ```