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[:])