summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-27 14:26:45 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-27 14:31:50 +0200
commit44161ea4ff9e8910c6da285a4d1b242ce9372192 (patch)
tree0846118851d7da79696d81cc61fed5a5dd11ece3 /server.js
parent76445df17a2f3a6f68de5584586c6aa131086830 (diff)
downloadserver-44161ea4ff9e8910c6da285a4d1b242ce9372192.tar.gz
Increase random seed range.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 710879f..d95d72a 100644
--- a/server.js
+++ b/server.js
@@ -156,7 +156,7 @@ if (HTTPS_PORT) {
*/
function random_seed() {
- return crypto.randomInt(1, 0x7ffffffe)
+ return crypto.randomInt(1, 2**35-31)
}
function SLOG(socket, ...msg) {