mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Don't hash because Henry is hashist!
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = RedisSharelatex =
|
||||
heartbeatInterval = heartbeatOpts.heartbeat_interval or 1000 #ms
|
||||
reconnectAfter = heartbeatOpts.reconnect_after or 5000 #ms
|
||||
|
||||
id = require("crypto").createHash("md5").update(Math.random().toString()).digest("hex")
|
||||
id = require("crypto").randomBytes(16).toString("hex")
|
||||
heartbeatChannel = "heartbeat-#{id}"
|
||||
lastHeartbeat = Date.now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user