ref/test/testutil: make use of the rand generator explicit.

Before this change, testutil would implicitly initialize a
random number generator and print out the seed used. This
was mildly annoying because every test binary would print
out this seed as the first thing, but otherwise fine. However,
we'd like to move away from using a global singleton for
logging at which point logging out the seed in an init
function before other intialization has occurred becomes
problematic. This change makes it so that the random number
generator must be initialized explicitly and that this
initialization returns a function to be deferred that prints
out the seed if the test failed.

Change-Id: I0b57ea47d8eaaf45be2a5eeecba2fa1732ae85fd
24 files changed
tree: 36ec5c67a22d9bb626c1e21d50558bc1cc7348da
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.