simplify SID generation

This commit is contained in:
seydx
2026-01-12 13:56:52 +01:00
parent 25e3125a89
commit 3a587c9cee
+1 -2
View File
@@ -403,8 +403,7 @@ func (c *Conn) Error() error {
func (c *Conn) discovery() error { func (c *Conn) discovery() error {
c.sid = make([]byte, 8) c.sid = make([]byte, 8)
rand.Read(c.sid[:2]) rand.Read(c.sid)
copy(c.sid[2:], []byte{0x76, 0x0a, 0x9d, 0x24, 0x88, 0xba})
oldPkt := crypto.TransCodeBlob(c.buildDisco(1)) oldPkt := crypto.TransCodeBlob(c.buildDisco(1))
newPkt := c.buildNewDisco(0, 0, false) newPkt := c.buildNewDisco(0, 0, false)