mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Merge pull request #34 from safing/feature/remove-random-config
Remove random config
This commit is contained in:
commit
9b0a46f429
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue