Merge pull request #34 from safing/feature/remove-random-config

Remove random config
This commit is contained in:
Patrick Pacher 2020-04-18 10:50:10 +02:00 committed by GitHub
commit 9b0a46f429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -85,9 +85,9 @@ func (f *Feeder) SupplyEntropyAsIntIfNeeded(n int64, entropy int) {
}
}
// CloseFeeder stops the feed processing - the responsible goroutine exits.
// CloseFeeder stops the feed processing - the responsible goroutine exits. The input channel is closed and the feeder may not be used anymore in any way.
func (f *Feeder) CloseFeeder() {
f.input <- nil
close(f.input)
}
func (f *Feeder) run(ctx context.Context) error {

View file

@ -25,7 +25,7 @@ var (
)
func init() {
module = modules.Register("random", nil, start, nil)
module = modules.Register("rng", nil, start, nil)
}
func newCipher(key []byte) (cipher.Block, error) {