Skip to content

Re-add Cauchy test with tolerance; remove moved crates. - #895

Merged
dhardy merged 4 commits into
rust-random:masterfrom
dhardy:master
Sep 21, 2019
Merged

dhardy merged 4 commits into
rust-random:masterfrom
dhardy:master

Conversation

@dhardy

@dhardy dhardy commented Sep 20, 2019

Copy link
Copy Markdown
Member

Addresses vks's concern.

Concludes #885 by removing all moved crates and rand_os (now obsolete).

rand_os has been deprecated since OsRng is now provided by rand_core
The other crates have been moved to the rust-random/rngs repo.
Note: the init benches now use a different master RNG;
this appears to have little affect on results.
@dhardy
dhardy requested a review from vks September 20, 2019 15:50
Comment thread rand_distr/src/cauchy.rs
for (a,b) in buf.iter().zip(expected.iter()) {
let (a,b) = (*a, *b);
assert!((a - b).abs() < 1e-6, "expected: {} = {}", a, b);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why didn't you leave the comparison in the function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because so far it looks like we can assert exact equality for f64.

@vks

vks commented Sep 20, 2019

Copy link
Copy Markdown
Contributor

Maybe all the benchmarks should moved to rust-random/rngs?

@vks

vks commented Sep 20, 2019

Copy link
Copy Markdown
Contributor

The failure looks like bincode does not correctly specify its minimally required autocfg version.

@dhardy

dhardy commented Sep 20, 2019

Copy link
Copy Markdown
Member Author

Maybe all the benchmarks should moved to rust-random/rngs?

Tempting. But if we did that we'd only have benchmarks on the last released version (without hacking in a local path dependency or requiring git submodules). So I think the benches have to be split now.

@dhardy

dhardy commented Sep 20, 2019

Copy link
Copy Markdown
Member Author

The failure looks like bincode does not correctly specify its minimally required autocfg version.

Looks like bincode requires autocfg 0.1.2, which bincode 1.1.4 does. But we depend on version 1.1.2 which doesn't.

@dhardy
dhardy merged commit 737f5f6 into rust-random:master Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants