fix some references to no-longer-existing ReprOptions.layout_seed
This commit is contained in:
parent
34aab623dd
commit
297abc35b3
2 changed files with 2 additions and 2 deletions
|
@ -958,7 +958,7 @@ fn univariant<
|
||||||
#[cfg(feature = "randomize")]
|
#[cfg(feature = "randomize")]
|
||||||
{
|
{
|
||||||
use rand::{seq::SliceRandom, SeedableRng};
|
use rand::{seq::SliceRandom, SeedableRng};
|
||||||
// `ReprOptions.layout_seed` is a deterministic seed we can use to randomize field
|
// `ReprOptions.field_shuffle_seed` is a deterministic seed we can use to randomize field
|
||||||
// ordering.
|
// ordering.
|
||||||
let mut rng =
|
let mut rng =
|
||||||
rand_xoshiro::Xoshiro128StarStar::seed_from_u64(repr.field_shuffle_seed);
|
rand_xoshiro::Xoshiro128StarStar::seed_from_u64(repr.field_shuffle_seed);
|
||||||
|
|
|
@ -41,7 +41,7 @@ bitflags! {
|
||||||
// Internal only for now. If true, don't reorder fields.
|
// Internal only for now. If true, don't reorder fields.
|
||||||
const IS_LINEAR = 1 << 3;
|
const IS_LINEAR = 1 << 3;
|
||||||
// If true, the type's layout can be randomized using
|
// If true, the type's layout can be randomized using
|
||||||
// the seed stored in `ReprOptions.layout_seed`
|
// the seed stored in `ReprOptions.field_shuffle_seed`
|
||||||
const RANDOMIZE_LAYOUT = 1 << 4;
|
const RANDOMIZE_LAYOUT = 1 << 4;
|
||||||
// Any of these flags being set prevent field reordering optimisation.
|
// Any of these flags being set prevent field reordering optimisation.
|
||||||
const IS_UNOPTIMISABLE = ReprFlags::IS_C.bits()
|
const IS_UNOPTIMISABLE = ReprFlags::IS_C.bits()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue