Closed timotheecour closed 5 years ago
EDIT: https://github.com/nim-lang/Nim/issues/9741 was finally fixed
and i just re-ran above code:
{
"name" : "bob2"
}
(ok: true, n: 1, err: "", inserted_ids: @[{"$oid": "5c52b31b9595251b396ce0f8"}], bson: {
"n" : 1,
"ok" : 1.0
})
which now works
in mongo shell (likewise with other clients):
with nimongo:
prints:
ie, there are 7 zeros, which reduces the entropy, and increases chances of collisions among other things
EDIT
root cause is https://github.com/nim-lang/Nim/issues/9741