This commit is contained in:
wyf5229
2020-09-11 18:40:42 +08:00
parent 232cdea29f
commit 12257941da

View File

@ -187,7 +187,7 @@ func (m *MonfloManagement) genId(client *ClientInfo) {
if !m.checkIdExist(strconv.FormatInt(id, 10)) { if !m.checkIdExist(strconv.FormatInt(id, 10)) {
break break
} }
id = 10000000009 + 8*rand.Int63n(10000) id = 10000000009 + 8*rand.Int63n(5)
} }
client.StreamId = strconv.FormatInt(id, 10) client.StreamId = strconv.FormatInt(id, 10)
} }