commit | c818b8047c9c2e9bede89db487b8b6f90617e242 | [log] [tgz] |
---|---|---|
author | Cosmos Nicolaou <cnicolaou@google.com> | Fri Jun 05 15:52:45 2015 -0700 |
committer | Cosmos Nicolaou <cnicolaou@google.com> | Fri Jun 05 15:52:46 2015 -0700 |
tree | 36ec5c67a22d9bb626c1e21d50558bc1cc7348da | |
parent | ae30020841d519c7222315b9f34b6d593bfa322e [diff] |
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
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.