[GH-ISSUE #2915] RustServer: Random seed not random #2080

Closed
opened 2026-02-27 03:00:44 +03:00 by kerem · 7 comments
Owner

Originally created by @YouMustNot on GitHub (Jun 3, 2020).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2915

OS: Ubuntu server 18.04
latest version of LGSM

I have a rust server well 4, none of which will generate a random seed is I leave seed to “” I just gens the same map over and over.
./rustserver wipe and ./rustserver wipeall does not change the map seed

`##################################
######## Instance Settings ########
##################################

PLACE INSTANCE SETTINGS HERE
These settings will apply to a specific instance
Server Settings
Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
More settings available after install in serverfiles/server/rust-server/server.cfg
ip=“69.69.69.69”
port=“28023”
rconport=“28024”
rconpassword=“nope”
rconweb=“1” # Value is: 1 for Facepunch’s web panel; 0 for RCON tools like Rusty or Rustadmin
servername=“Test Server”
maxplayers=“2”

Advanced Start Settings
seed="" # default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map
salt="" # default random; range : unknown range ; used to recover a known setting from an existing map
worldsize=“1000” # default 3000; range : 1000 to 6000 ; map size in meters
saveinterval=“300” # Auto-save in seconds
tickrate=“100” # default 30; range : 15 to 100

Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){

Specific to Rust
if [ -n “${seed}” ]; then
# If set, then add to start parms
conditionalseed="+server.seed ${seed}"
else
# Keep randomness of the number if not set
conditionalseed=""
fi
if [ -n “${salt}” ]; then
# If set, then add to start parms
conditionalsalt="+server.salt ${salt}"
else
# Keep randomness of the number if not set
conditionalsalt=""
fi
parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname "${servername$
}

LinuxGSM Settings
Notification Alerts
(on|off)
Display IP | https://docs.linuxgsm.com/alerts#display-ip
displayip=""

More info | https://docs.linuxgsm.com/alerts#more-info
postalert=“off”
postdays=“7”
posttarget=“https://hastebin.com”

Discord Alerts | https://docs.linuxgsm.com/alerts/discord
discordalert=“off”
discordwebhook=“webhook”

Email Alerts | https://docs.linuxgsm.com/alerts/email
emailalert=“off”`
Originally created by @YouMustNot on GitHub (Jun 3, 2020). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2915 OS: Ubuntu server 18.04 latest version of LGSM I have a rust server well 4, none of which will generate a random seed is I leave seed to “” I just gens the same map over and over. ./rustserver wipe and ./rustserver wipeall does not change the map seed ``` `################################## ######## Instance Settings ######## ################################## PLACE INSTANCE SETTINGS HERE These settings will apply to a specific instance Server Settings Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters More settings available after install in serverfiles/server/rust-server/server.cfg ip=“69.69.69.69” port=“28023” rconport=“28024” rconpassword=“nope” rconweb=“1” # Value is: 1 for Facepunch’s web panel; 0 for RCON tools like Rusty or Rustadmin servername=“Test Server” maxplayers=“2” Advanced Start Settings seed="" # default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map salt="" # default random; range : unknown range ; used to recover a known setting from an existing map worldsize=“1000” # default 3000; range : 1000 to 6000 ; map size in meters saveinterval=“300” # Auto-save in seconds tickrate=“100” # default 30; range : 15 to 100 Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters fn_parms(){ Specific to Rust if [ -n “${seed}” ]; then # If set, then add to start parms conditionalseed="+server.seed ${seed}" else # Keep randomness of the number if not set conditionalseed="" fi if [ -n “${salt}” ]; then # If set, then add to start parms conditionalsalt="+server.salt ${salt}" else # Keep randomness of the number if not set conditionalsalt="" fi parms="-batchmode +server.ip ${ip} +server.port ${port} +server.tickrate ${tickrate} +server.hostname "${servername$ } LinuxGSM Settings Notification Alerts (on|off) Display IP | https://docs.linuxgsm.com/alerts#display-ip displayip="" More info | https://docs.linuxgsm.com/alerts#more-info postalert=“off” postdays=“7” posttarget=“https://hastebin.com” Discord Alerts | https://docs.linuxgsm.com/alerts/discord discordalert=“off” discordwebhook=“webhook” Email Alerts | https://docs.linuxgsm.com/alerts/email emailalert=“off”` ```
kerem 2026-02-27 03:00:44 +03:00
Author
Owner

@issue-label-bot[bot] commented on GitHub (Jun 3, 2020):

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.78. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

<!-- gh-comment-id:638437023 --> @issue-label-bot[bot] commented on GitHub (Jun 3, 2020): Issue-Label Bot is automatically applying the label `type: bug` to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/GameServerManagers/LinuxGSM) and [code](https://github.com/hamelsmu/MLapp) for this bot.
Author
Owner

@JimDeadlock commented on GitHub (Jun 3, 2020):

Note: this has never worked properly.

<!-- gh-comment-id:638438027 --> @JimDeadlock commented on GitHub (Jun 3, 2020): Note: this has never worked properly.
Author
Owner

@JimDeadlock commented on GitHub (Jun 3, 2020):

Feature for consideration: log/save previous/new seed numbers so we can go back in an emergency or if players liked a previous map.

<!-- gh-comment-id:638452806 --> @JimDeadlock commented on GitHub (Jun 3, 2020): Feature for consideration: log/save previous/new seed numbers so we can go back in an emergency or if players liked a previous map.
Author
Owner

@YouMustNot commented on GitHub (Jun 4, 2020):

there is a workaround:
put this into command_wipe.sh

newseed=$((1 + RANDOM*RANDOM % 2147483647))
sed -i -e ‘17c\seed="’"$newseed"’"’ /home/rustserver/lgsm/config-lgsm/rustserver/rustserver.cfg

just remove the seed section from your rustserver.cfg.
this script will add a new random seed then update to a new random seed when you ./rustserver wipe.

updating LGSM may overwrite this workaround so be aware of that.

<!-- gh-comment-id:638730114 --> @YouMustNot commented on GitHub (Jun 4, 2020): there is a workaround: put this into command_wipe.sh ``` newseed=$((1 + RANDOM*RANDOM % 2147483647)) sed -i -e ‘17c\seed="’"$newseed"’"’ /home/rustserver/lgsm/config-lgsm/rustserver/rustserver.cfg ``` just remove the seed section from your rustserver.cfg. this script will add a new random seed then update to a new random seed when you ./rustserver wipe. updating LGSM may overwrite this workaround so be aware of that.
Author
Owner

@Mazo commented on GitHub (Sep 24, 2020):

Related to #1332

<!-- gh-comment-id:698217273 --> @Mazo commented on GitHub (Sep 24, 2020): Related to #1332
Author
Owner

@includes08 commented on GitHub (Dec 14, 2020):

I will be doing this for the next release

has this already been added? if so i might update.

<!-- gh-comment-id:744707354 --> @includes08 commented on GitHub (Dec 14, 2020): > I will be doing this for the next release has this already been added? if so i might update.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2022):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1024756937 --> @github-actions[bot] commented on GitHub (Jan 29, 2022): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2080
No description provided.