Rahul can you please login to your PhpMyAdmin and goto the orders table and search for that uniqueorder_id and get the corresponding id for both the orders (id would be in numerical form, first column on the orders table)
It would help us in debugging this issue.
(In the mean time I will try to generate a hundred thousand hash ids and check if there are any duplications)