Skip to content

Rand: update to work with latest rand version - #2

Open
skhyr wants to merge 1 commit into
second-state:masterfrom
skhyr:master
Open

skhyr wants to merge 1 commit into
second-state:masterfrom
skhyr:master

Conversation

@skhyr

@skhyr skhyr commented Feb 8, 2023 •

Copy link
Copy Markdown

The code from this article worked fine with rand version listed in the Cargo.toml. However, in the 8.0.0 the gen_range method has changed and it now gets one Range argument. I think it's better to update this article to work with latest version, especially when now developers can add dependencies via cargo add and it is likely that they will use it without specifying a version. I've also removed the extern crate because it is no longer needed since Rust 2018

This branch has not been deployed

No deployments
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.

1 participant