Skip to content

Commit

Permalink
Some more random load
Browse files Browse the repository at this point in the history
  • Loading branch information
antweiss committed Aug 21, 2024
1 parent 57bb074 commit 7218bb3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,13 @@ func main() {
now := time.Now()

if now.Sub(start) > 30*time.Second {
_, _ = GenerateRandomString(320000)
secretKey, _ = GenerateRandomString(32)
timestamp = strconv.FormatInt(now.Unix(), 16)
log.Print("Time passed, generating a new secret key ", secretKey)
log.Print("timestamp is ", timestamp)
start = now
}
// for {
// // run 100%
// if time.Now().Sub(now) > time.Duration(len(input.Plaintext))*time.Microsecond {
// break
// }
// }
// sleep
time.Sleep(1 * time.Second)
}
}()
Expand Down

0 comments on commit 7218bb3

Please sign in to comment.