Fix racecondition in UUIDs tests (#55215)
By removing the direct reliance on `time()` for individual calls to
these two, we can remove a race condition in the testsuite.
Fixes #55190
---------
Co-authored-by: Sukera <Seelengrab@users.noreply.github.com>