Merge pull request #1079 from ostermine/fix/math-randomseed
Some checks failed
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Has been cancelled
Build / Build (push) Has been cancelled
Macos Build / build-dmg (push) Has been cancelled
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Has been cancelled
MSVC Build / build-windows (windows-2022) (push) Has been cancelled

fix math.random seed being the same on every launch
This commit is contained in:
MihailRis 2026-11-08 17:51:43 +03:00 • committed by GitHub
commit 348c058c9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,7 +410,7 @@ require("core:io_stream").wrap_bytearray = require "core:internal/stream_provide
network.__as_stream = require "core:internal/stream_providers/socket"
math.randomseed(time.uptime() * 1536227939)
math.randomseed(time.precise_utc_time())
rules = require "core:internal/rules"
time.schedules = {}