Drop rng and SystemTime calls from KeysManager
authorMatt Corallo <git@bluematt.me>
Thu, 18 Jul 2019 23:51:12 +0000 (19:51 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jul 2019 18:29:53 +0000 (14:29 -0400)
commit8f4e095e03f3b956da17b678b6a9b4805a012128
tree97c68aa9af1297455c909cf56120df273d6dd5c0
parentef3e9dd704d87f4183f2ca33d2be959144a33e2f
Drop rng and SystemTime calls from KeysManager

They were only used for ensuring generated keys were globally
unique (ie in case the user opened the same seed at a different
time, we need generated keys to be globally unique).

Instead, we let the user specify a time in secs/nanos, and provide
a precise meaning for the user to understand.
src/chain/keysinterface.rs
src/ln/functional_tests.rs
src/util/test_utils.rs