Added replay protection

This commit is contained in:
Mathias Hall-Andersen
2017-07-10 12:09:19 +02:00
parent 4ad62aaa6a
commit 44c9896883
7 changed files with 227 additions and 42 deletions
+7
View File
@@ -19,6 +19,13 @@ func min(a uint, b uint) uint {
return a
}
func minUint64(a uint64, b uint64) uint64 {
if a > b {
return b
}
return a
}
func signalSend(c chan struct{}) {
select {
case c <- struct{}{}: