Skip to content
Snippets Groups Projects
Commit 62d19544 authored by benjamin's avatar benjamin
Browse files

ensured the message id exists

parent 7ed1741d
No related branches found
No related tags found
4 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!403make unsent message ids actually random,!340Project/channels
......@@ -208,6 +208,7 @@ func (st *sendTracker) denotePendingSend(channelID *id.ID,
// create a random message id so there will not be collisions in a database
// that requires a unique message ID
stream := st.rngSrc.GetStream()
umi.messageID = cryptoChannel.MessageID{}
num, err := stream.Read(umi.messageID[:])
if num != len(umi.messageID[:]) || err != nil {
jww.FATAL.Panicf("failed to get a random message ID, read "+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment