Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Random tests are currently impossible in Rust #240

Closed
error256 opened this issue Sep 18, 2016 · 2 comments · Fixed by #466
Closed

Random tests are currently impossible in Rust #240

error256 opened this issue Sep 18, 2016 · 2 comments · Fixed by #466
Assignees

Comments

@error256
Copy link

I'm not really sure but it looks like there's no way to generate random numbers properly without using an external crate which requires adding a dependency to Cargo.toml project file.
https://doc.rust-lang.org/rand/rand/index.html
https://stackoverflow.com/questions/30735490/unresolved-name-randthread-rng

@lteacher
Copy link
Contributor

lteacher commented Oct 18, 2016

Originally there was a solution which used cargo but it was more irritating for some various reasons and now just rustc is used. It looks like either way an enhancement is required to do it.

@DonaldKellett
Copy link
Member

DonaldKellett commented Jul 14, 2017

Bump

@jhoffner Do you know an active contributor to this Repo who might just be able to allow for random input generation in Rust? I have just received a Rust translation to one of my Kata without random tests and I would love to approve it (the overall translation quality is good) but I can't until he/she has added random tests to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants