> On 9 Oct 2023, at 23:46, Andrey Borodin <amborodi...@gmail.com> wrote:
Here's next iteration of the patch. I've added get_uuid_v7_time(). This function extracts timestamp from uuid, iff it is v7. Timestamp correctness only guaranteed if the timestamp was generated by the same implementation (6 bytes for milliseconds obtained by gettimeofday()). Tests verify that get_uuid_v7_time(gen_uuid_v7()) differs no more than 1ms from now(). Maybe we should allow more tolerant values for slow test machines. Best regards, Andrey Borodin.
v7-0001-Implement-UUID-v7-as-per-IETF-draft.patch
Description: Binary data
v7-0003-Use-cached-random-numbers-in-gen_random_uuid-too.patch
Description: Binary data
v7-0002-Buffer-random-numbers.patch
Description: Binary data