Skip to content
Snippets Groups Projects
Commit 156bef3d authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a comment

parent ce10f748
No related branches found
No related tags found
5 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!354Channels impl,!340Project/channels
......@@ -38,7 +38,7 @@ func mutateTimestamp(ts time.Time, msgID channel.MessageID) time.Time {
// to get an offset factor. Use a prime close to 1000000 to make sure there
// are no patterns in the output and reduce the chance of collision. While
// the fields do not align, so there is some bias towards some parts of the
// output field, that bias a too small to matter because log2(10000019) ~23
// output field, that bias is too small to matter because log2(10000019) ~23
// while the input field is 256.
offsetLarge := large.NewIntFromBytes(msgID.Bytes())
offsetLarge.Mod(offsetLarge, tenMsInNsLargeInt)
......
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