diff options
author | Michael Muré <batolettre@gmail.com> | 2021-03-14 18:39:04 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-03-14 18:40:50 +0100 |
commit | f1d4a19af81fcc05ae9d90e018ff141f6521335a (patch) | |
tree | 9d82815e93a2d3a0856962249798f8adac81a1a6 /entity/id.go | |
parent | bd09541752ef4db008500d238762ebe7f2f7be39 (diff) | |
download | git-bug-f1d4a19af81fcc05ae9d90e018ff141f6521335a.tar.gz |
bug: nonce on all operation to prevent id collision
Diffstat (limited to 'entity/id.go')
-rw-r--r-- | entity/id.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entity/id.go b/entity/id.go index b602452e..c8dbdb94 100644 --- a/entity/id.go +++ b/entity/id.go @@ -18,7 +18,7 @@ const UnsetId = Id("unset") // Id is an identifier for an entity or part of an entity type Id string -// DeriveId generate an Id from some data, taken from a root part of the entity. +// DeriveId generate an Id from the serialization of the object or part of the object. func DeriveId(data []byte) Id { // My understanding is that sha256 is enough to prevent collision (git use that, so ...?) // If you read this code, I'd be happy to be schooled. |