suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

UID from dicom.UID.generate_uid() may not be unique if called twice in rapid succession #124

Open suever opened 9 years ago

suever commented 9 years ago

From jog...@gmail.com on April 02, 2013 09:25:43

What steps will reproduce the problem? 1. Call dicom.UID.generate_uid() twice in two subsequent calls What is the expected output? What do you see instead? - I expect that uids are different. What I see, is that the UIDs may actually be identical. What version of the product are you using? - pydicom 0.9.8 _NOTE_: any text or attached files posted with the issue can be viewed by anyone. You are solely responsible to ensure that they contain no confidential information of any kind. Please provide any additional information below. - The dicom.UID.generate_uid() should include some kind of counter that is incremented between successive calls.

Original issue: http://code.google.com/p/pydicom/issues/detail?id=124

suever commented 9 years ago

From darcymason@gmail.com on April 05, 2013 05:53:42

I had a quick look at this. The UID includes the time, and the smallest resolution is microseconds. Apparently that is not fast enough. There are a few possible paths:

Anyone have ideas on these or other options?

Status: Accepted