Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
156bef3d
Commit
156bef3d
authored
2 years ago
by
Benjamin Wenger
Browse files
Options
Downloads
Patches
Plain Diff
fixed a comment
parent
ce10f748
No related branches found
No related tags found
5 merge requests
!510
Release
,
!419
rewrote the health tracker to both consider if there are waiting rounds and...
,
!371
[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast
,
!354
Channels impl
,
!340
Project/channels
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
channels/mutateTimestamp.go
+1
-1
1 addition, 1 deletion
channels/mutateTimestamp.go
with
1 addition
and
1 deletion
channels/mutateTimestamp.go
+
1
−
1
View file @
156bef3d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment