-
-
Notifications
You must be signed in to change notification settings - Fork 461
Portability fixes #1469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portability fixes #1469
Changes from all commits
3bf4f42
54d6e3d
91b90ba
8e070ac
4250901
4da448f
2019db1
89ad30d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,10 @@ | |
|
||
use rand_core::{RngCore, SeedableRng}; | ||
|
||
#[cfg(any(target_pointer_width = "32", target_pointer_width = "16"))] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change it from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
type Rng = super::xoshiro128plusplus::Xoshiro128PlusPlus; | ||
#[cfg(target_pointer_width = "64")] | ||
type Rng = super::xoshiro256plusplus::Xoshiro256PlusPlus; | ||
#[cfg(not(target_pointer_width = "64"))] | ||
type Rng = super::xoshiro128plusplus::Xoshiro128PlusPlus; | ||
|
||
/// A small-state, fast, non-crypto, non-portable PRNG | ||
/// | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with
gen_index
, this should probably be exposed somehow (left for a future PR).