When doing bulk operations it is quite easy for requests to go out with the same timestamp. If I leave a bulk operation going at up to 60 requests a minute (often they all go out in the first 10s) then it will almost certainly use a duplicate timestamp/nonce pair within about 20 minutes.
I'd say that make_nonce needs to also take into account the current time in microseconds and maybe even the pid.
Using sleep() is my current method but I don't think it should be needed.
When doing bulk operations it is quite easy for requests to go out with the same timestamp. If I leave a bulk operation going at up to 60 requests a minute (often they all go out in the first 10s) then it will almost certainly use a duplicate timestamp/nonce pair within about 20 minutes.
I'd say that make_nonce needs to also take into account the current time in microseconds and maybe even the pid.
Using sleep() is my current method but I don't think it should be needed.