Unique 10 digit Sequence ID - 200 IDs/Sec
<p>I need to generate unique ID in c++. I'm looking at almost 200 IDs per second and these IDs should not repeat atleast for the next 30 days. The IDs should be 9 or 10 digits long.
Also these should not repeat if my service is restarted or if my machine is restarted.</p>

<p>i checked out the following link
<a href="http://stackoverflow.com/questions/6368503/generate-unique-sequence-id">Generate unique sequence ID</a></p>

<p>It's almost the same requirement as mine. 
But the problem i faced with that piece of code is the ID length.
At times it used to generate as low as 2 digit IDs.
I confirmed this with a test driver.</p>

<p>Your inputs will be much appreciated.</p>
