SERVER-111750 Make SEORDER more random (#42017)

GitOrigin-RevId: e193663cfbead5a36282d3e633ae0550f93e38ba
This commit is contained in:
Gabriel Marks 2025-10-02 12:34:22 -04:00 committed by MongoDB Bot
parent 3bc4b4a7c4
commit 41ff0baec0
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ fi
# selinux policy should work both when applied before and after install
# we will randomly apply it before or after installation is completed
SEORDER="$(($RANDOM % 2))"
SEORDER="$(($(od -An -N1 -tu1 /dev/urandom) % 2))"
if [ "$SEORDER" == "0" ]; then
apply_selinux_policy
fi