We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d48061a + 206a8ca commit 6832f25Copy full SHA for 6832f25
backend/schedulerd/check_timer.go
@@ -1,7 +1,7 @@
1
package schedulerd
2
3
import (
4
- "crypto/md5"
+ "crypto/sha256"
5
"encoding/binary"
6
7
time "github.com/echlebek/timeproxy"
@@ -33,7 +33,8 @@ type IntervalTimer struct {
33
func NewIntervalTimer(name string, interval uint) *IntervalTimer {
34
// Calculate a check execution splay to ensure
35
// execution is consistent between process restarts.
36
- sum := md5.Sum([]byte(name))
+ // Using SHA-256 for FIPS 140-3 compliance.
37
+ sum := sha256.Sum256([]byte(name))
38
splay := binary.LittleEndian.Uint64(sum[:])
39
40
timer := &IntervalTimer{splay: splay}
0 commit comments