test/testutil,services: favor NewRandGenerator over InitRandGenerator

As mentioned in the newly added comment in rand.go, using the global singleton
is confusing and can lead to subtle cross-test interference.  It's simpler and
more straightforward to create and use random objects explicitly.

This change makes it possible to do so and changes binarylib and
deviced/impl/internal to the new scheme.

Change-Id: I0193a79e30f9f510e13165e228f65a450211a3db
7 files changed
tree: adc67f0b553dd050e251b668d4e80c7fa40091cb
  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.