fix comment
This commit is contained in:
parent
08103bb7bb
commit
dff34fa7fc
|
|
@ -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[:])
|
||||
|
|
|
|||
Loading…
Reference in New Issue