Skip to content

Commit

Permalink
random salt in passport.txt must call the RANDOM script explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
phyver committed Feb 9, 2024
1 parent 000a07b commit 07ce6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ Do you want to remove it and start a new game? [y/N]') "
_confirm_passport "$PASSPORT" && break
done

printf '\n==========\nRANDOM=%d\n' $RANDOM >> "$PASSPORT"

# some random part added to the file so that GSH_UID is randomized
printf '==========\nrandom salt: %d\n' "$("$GSH_ROOT/scripts/RANDOM")" >> "$PASSPORT"

# Generation of a unique identifier for the the player.
export GSH_UID="$(checksum < "$PASSPORT" | cut -c 1-40)"
Expand Down

0 comments on commit 07ce6d0

Please sign in to comment.