Files
gallery-dl/gallery_dl
Mike Fährmann d92bc06f90 [twitter:ctid] reduce chance of generating the same ID
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.
2025-05-10 21:27:22 +02:00
..
2021-10-13 04:07:41 +02:00
2023-12-18 23:57:22 +01:00
2025-04-15 22:47:33 +02:00