From 4091ef0496895c0d18d329a1f18fd864a53328f7 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Fri, 24 May 2024 18:03:51 -0700 Subject: [PATCH] fix: remove hash extra --- src/croc/croc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index 0d8ac643..3e2fc08d 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -198,7 +198,7 @@ func New(ops Options) (c *Client, err error) { // Create a hash of part of the shared secret to use as the room name // add the current day and "croc" to the shared secret to make more resistant // to rainbow tables - hashExtra := "croc" + time.Now().Format("2006-01-02") + hashExtra := "croc" roomNameBytes := sha256.Sum256([]byte(c.Options.SharedSecret[:4] + hashExtra)) c.Options.RoomName = hex.EncodeToString(roomNameBytes[:])