Update Key.luau

Unnecessarily calling `tostring` on the key.
This commit is contained in:
xArshy 2024-04-02 12:22:01 +04:00 committed by GitHub
parent 9aaa382278
commit 59488be401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
--!strict --!strict
return function(): number? return function(): string?
return tonumber(string.sub(tostring(Random.new():NextNumber()), 3, 7)) -- 4 digits return string.sub(Random.new():NextNumber(), 3, 7) -- 4 digits
end end