rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.67k stars 432 forks source link

remove conditional compilation around using core #1534

Closed ComputerDruid closed 1 hour ago

ComputerDruid commented 11 hours ago

Summary

Minor simplification

Motivation

Makes things cleaner; probably makes code completion in editors know what's actually in code

Details

I tested this with 1.61 locally and it seems to work fine. I wasn't able to quickly figure out which rust version stabilized using core from anywhere though. Probably sometime around 2018 edition, I'd guess