torrust-tracker
torrust-tracker copied to clipboard
Crypto: Ephemeral Instance Random Seeds with Keepers
This module makes use of lazy_static, to initialize an instance ephemeral random seed for the server to use on startup.
This seed can be used to derive other instance ephemeral keys. The seed is forgotten upon shutdown of the server.
To help with testing, a DefaultSeed helping structure that provides a zeroed seed when testing, and the random seed when not testing.
Rebased after merge of #81
ACK d09c58f93aa6d3cc0d15bfcb20fd08b6f4abbd79
ACK 873293a6f871ba6102d75df2379471b43bcf0096