Make the randomize feature of rustc_abi additive

This commit is contained in:
hkalbasi 2023-11-05 21:51:47 +03:30
parent a42d94ebb8
commit c8a25eddfe
4 changed files with 7 additions and 9 deletions

View file

@ -906,9 +906,8 @@ fn univariant<
use rand::{seq::SliceRandom, SeedableRng};
// `ReprOptions.layout_seed` is a deterministic seed we can use to randomize field
// ordering.
let mut rng = rand_xoshiro::Xoshiro128StarStar::seed_from_u64(
repr.field_shuffle_seed.as_u64(),
);
let mut rng =
rand_xoshiro::Xoshiro128StarStar::seed_from_u64(repr.field_shuffle_seed);
// Shuffle the ordering of the fields.
optimizing.shuffle(&mut rng);