func SetChaos(c Chaos) {
	chaosSetting = c
	chaosEnabled = c.KillChance > 0 || c.SlowdownChance > 0
}
SetChaos sets the failure injection parameters to c.
package txn
import (
	mrand "math/rand"
	"time"
)
var chaosEnabled = false
var chaosSetting Chaos
type Chaos struct {
	KillChance float64
	SlowdownChance float64
	Slowdown       time.Duration
	Breakpoint string
}