Querying the same endpoint more than once per second could result in a "404 Not Found" error if the same transaction ID is generated by 'random.randrange(256)' yielding the same result. This commit tries to significantly reduce the chance of this happening by incorporating the fractional part of the current timestamp into the random number, making it only possible to generate the same ID for one-sixteenth of a second.
7.4 KiB
7.4 KiB