Make test output deterministic
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 17 Jun 2020 15:29:30 +0000 (08:29 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 19 Jun 2020 02:28:50 +0000 (19:28 -0700)
commit43eed8dd8b9ab54af444c5d19a8d25431da4e18d
tree982728691460820ea1cce804566fef1d4fc68407
parentbd2fa43acd54f9e0876d493178679dfcadf7d178
Make test output deterministic

Tests use sources of randomness to produce seeds, preimages, secrets,
and ephemeral data. However, this makes comparing logs between different
test runs difficult. Remove uses of random number generators and the
current time in favor of fixed values in order to make the test output
deterministic.
lightning/Cargo.toml
lightning/src/lib.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/test_utils.rs