You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen you generate message_ids using the code line:
message_id = uuid.uuid4().hex
I haven't seen anywhere that you check if the message_id already exists in the DB, I'm guessing this is because possibilities of having a collision are so low that are meaningless. But I just wanted to make sure, this is done on purpose and that you are aware of this.
I'm not a uuid expert, but I believe with UUID 4 as long as its a different time and a different host machine, then it won't be possible to see a UUID collision
I don't believe the chances of a collision are within the scope of this project, and would be really difficult to implement in most situations. The message_id is generated before hand simply because it isnt guaranteed to exist on the server before the client finishes whatever its doing.
Activity
evanreiser commentedon Mar 1, 2011
I'm not a uuid expert, but I believe with UUID 4 as long as its a different time and a different host machine, then it won't be possible to see a UUID collision
dcramer commentedon Mar 25, 2011
I don't believe the chances of a collision are within the scope of this project, and would be really difficult to implement in most situations. The message_id is generated before hand simply because it isnt guaranteed to exist on the server before the client finishes whatever its doing.