|
|
@ -15,6 +15,9 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/RustDedic |
|
|
|
if [ -z "${seed}" ] || [ "${seed}" == "0" ]; then |
|
|
|
if [ ! -f "${datadir}/${selfname}-seed.txt" ]; then |
|
|
|
shuf -i 1-2147483647 -n 1 > "${datadir}/${selfname}-seed.txt" |
|
|
|
seed="$(cat "${datadir}/${selfname}-seed.txt")" |
|
|
|
fn_print_info_nl "Generating new random seed (${cyan}${seed}${default})" |
|
|
|
fn_script_log_pass "Generating new random seed (${cyan}${seed}${default})" |
|
|
|
fi |
|
|
|
seed="$(cat "${datadir}/${selfname}-seed.txt")" |
|
|
|
randomseed=1 |
|
|
|