Skip to content

Commit

Permalink
Update to rand 0.6, bump to 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Jan 4, 2019
1 parent 974b8e3 commit d54b13d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "linereader"
version = "0.2.0"
version = "0.3.0"
authors = ["Thomas Hurst <tom@hur.st>"]
description = "An efficient buffered line reader."
homepage = "https://github.com/Freaky/rust-linereader"
Expand All @@ -18,4 +18,4 @@ maintenance = { status = "actively-developed" }
memchr = "2"

[dev-dependencies]
rand = "0.4.0"
rand = "0.6.0"
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,15 @@ mod tests {
extern crate rand;
use std::io::BufRead;
use std::io::{Cursor, Read};
use tests::rand::Rng;
use tests::rand::prelude::*;

#[test]
fn test_next_line_randomly() {
let mut rng = rand::thread_rng();
let mut rng = thread_rng();

for _ in 1..128 {
let mut buf = [0u8; 65535];
rng.fill_bytes(&mut buf);
rng.fill(&mut buf[..]);
let delimiter = rng.gen::<u8>();
let max_line = rng.gen::<u8>().saturating_add(8) as usize;

Expand Down

0 comments on commit d54b13d

Please sign in to comment.