From 391bdf3c717fee4ded671bd72d5908038ad89da6 Mon Sep 17 00:00:00 2001 From: Stephen <stephen@stephendownward.ca> Date: Tue, 25 May 2021 12:44:49 -0300 Subject: [PATCH] Minor fixes --- README.md | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff029b4..fcd2e06 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Because Dota is better than LoL (According to people - I play neither) If you have cargo installed, just run: `cargo install dotacat` -If not, head over to the [releases page](https://git.scd31.com/stephen/dotacat/releases) and download the latest release. Then run: +If not, head over to the [releases page](https://gitlab.scd31.com/stephen/dotacat/-/releases/) and download the latest release. Then run: ``` chmod +x dotacat @@ -65,4 +65,4 @@ OPTIONS: Examples: dotacat f - g Output f's contents, then stdin, then g's contents. fortune | dotacat Display a rainbow cookie. -``` \ No newline at end of file +``` diff --git a/src/main.rs b/src/main.rs index 84f977e..32f88f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,7 @@ fn main() { } let mut seed: f64 = opts.seed; - if seed == 0.0 { + if seed.abs() < 0.00001 { seed = rand::random::<f64>() * 1_000_000.0; } -- GitLab