@@ -31,11 +31,12 @@ var flagNISTSP80090B = flag.Bool("nist-sp800-90b", false, "run NIST SP 800-90B t
31
31
32
32
func TestEntropySamples (t * testing.T ) {
33
33
cryptotest .MustSupportFIPS140 (t )
34
+ now := time .Now ().UTC ()
34
35
35
36
var seqSamples [1_000_000 ]uint8
36
37
samplesOrTryAgain (t , seqSamples [:])
37
38
seqSamplesName := fmt .Sprintf ("entropy_samples_sequential_%s_%s_%s_%s_%s.bin" , entropy .Version (),
38
- runtime .GOOS , runtime .GOARCH , * flagEntropySamples , time . Now () .Format ("20060102T150405Z" ))
39
+ runtime .GOOS , runtime .GOARCH , * flagEntropySamples , now .Format ("20060102T150405Z" ))
39
40
if * flagEntropySamples != "" {
40
41
if err := os .WriteFile (seqSamplesName , seqSamples [:], 0644 ); err != nil {
41
42
t .Fatalf ("failed to write samples to %q: %v" , seqSamplesName , err )
@@ -50,7 +51,7 @@ func TestEntropySamples(t *testing.T) {
50
51
copy (restartSamples [i ][:], samples [:])
51
52
}
52
53
restartSamplesName := fmt .Sprintf ("entropy_samples_restart_%s_%s_%s_%s_%s.bin" , entropy .Version (),
53
- runtime .GOOS , runtime .GOARCH , * flagEntropySamples , time . Now () .Format ("20060102T150405Z" ))
54
+ runtime .GOOS , runtime .GOARCH , * flagEntropySamples , now .Format ("20060102T150405Z" ))
54
55
if * flagEntropySamples != "" {
55
56
f , err := os .Create (restartSamplesName )
56
57
if err != nil {
0 commit comments