-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
genOid has low entropy (creates lots of 0 bits) #9741
Labels
Comments
Closed by #10248. |
timotheecour
changed the title
genOid has low entropy (creates lots of 0 bits)
[TODO] genOid has low entropy (creates lots of 0 bits)
Jan 11, 2019
issue remains, despite fact it was moved to graveyard; depending on outcome of #10248 (comment) we should migrate this issue to graveyard or re-open |
timotheecour
changed the title
[TODO] genOid has low entropy (creates lots of 0 bits)
genOid has low entropy (creates lots of 0 bits)
Jan 31, 2019
Fixed by 9ac0cbd |
/cc @narimiran thanks! D: foreach(i;0..10){
auto id = BsonObjectID.generate();
writeln(id);
} mongo shell:
sample results:
last 2 digits only vary in all cases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
root cause of:
[critical] inserted oid's have low entropy with lots of 0's (5bef5960c7dcd43e00000001 instead of 5bef58c408de32fe5a33a29b) · Issue #65 · SSPkrolik/nimongo
here's the D implementation for reference (which doesn't have this problem):
https://github.com/vibe-d/vibe.d/blob/ce494843201f15899353e6bfcdcbead3872c751c/data/vibe/data/bson.d#L900
The text was updated successfully, but these errors were encountered: