1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

fix comment

This commit is contained in:
Zack 2024-05-24 19:44:28 -07:00
parent 08103bb7bb
commit dff34fa7fc

View file

@ -196,8 +196,6 @@ func New(ops Options) (c *Client, err error) {
return
}
// 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"
roomNameBytes := sha256.Sum256([]byte(c.Options.SharedSecret[:4] + hashExtra))
c.Options.RoomName = hex.EncodeToString(roomNameBytes[:])