Commit 1f6dbb7a authored by Dan Notestein's avatar Dan Notestein
Browse files

Use nanosecond-based requestid for convert operations

This fixes flaky tests where multiple collateralized_convert or convert
operations created within the same second would get the same requestid
(based on seconds since epoch), causing uniqueness constraint violations.

Using time.time_ns() % (2**32) ensures unique IDs even when operations
are created in quick succession, while still fitting in the uint32_t
requestid field.
parent 282c4f23
Loading
Loading
Loading
Loading