Skip to content

Commit

Permalink
chore: Fix a couple errors in benchmark inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedible committed Dec 20, 2023
1 parent bf8189c commit df4754d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benches/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn rand_secs() -> i64 {
fn rand_hms() -> (u8, u8, u8) {
let h = fastrand::u8(0..=23);
let m = fastrand::u8(0..=59);
let s = fastrand::u8(0..59);
let s = fastrand::u8(0..=59);
(h, m, s)
}

Expand Down
4 changes: 2 additions & 2 deletions benches/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn rand_year() -> i32 {
}

fn rand_rd() -> i32 {
fastrand::i32(datealgo::date_to_rd((1970, 1, 1))..=datealgo::date_to_rd((9999, 1, 1)))
fastrand::i32(datealgo::date_to_rd((1970, 1, 1))..=datealgo::date_to_rd((9999, 12, 31)))
}

fn rand_date() -> (i32, u8, u8) {
Expand All @@ -26,7 +26,7 @@ fn rand_secs() -> i64 {
fn rand_hms() -> (u8, u8, u8) {
let h = fastrand::u8(0..=23);
let m = fastrand::u8(0..=59);
let s = fastrand::u8(0..59);
let s = fastrand::u8(0..=59);
(h, m, s)
}

Expand Down

0 comments on commit df4754d

Please sign in to comment.