func()

in pkg/generator/cisco/asa/asa.go [152:177]


func (a *Asa) randomize() {
	a.SrcInt = "SrcInt"
	a.SrcUser = "SrcUser"
	a.DstInt = "DstInt"
	a.DstUser = "DstUser"
	a.AccessGroup = "Access-Group"
	a.AclId = "AclId"
	a.Protocol = protocols[rand.Intn(len(protocols))]
	a.TranslationType = translationTypes[rand.Intn(len(translationTypes))]
	a.ConnectionId = rand.Intn(65536)
	a.Duration = fmt.Sprintf("%01d:%02d:%02d", rand.Intn(4), rand.Intn(60), rand.Intn(60))
	a.Bytes = rand.Intn(65536)
	a.Reason = reasons[rand.Intn(len(reasons))]
	a.SrcAddr = random.IPv4()
	a.SrcPort = random.Port()
	a.DstAddr = random.IPv4()
	a.DstPort = random.Port()
	a.Type = rand.Intn(64)
	a.Code = rand.Intn(64)
	a.Direction = directions[rand.Intn(len(directions))]
	a.Map1Addr = random.IPv4()
	a.Map1Port = random.Port()
	a.Map2Addr = random.IPv4()
	a.Map2Port = random.Port()
	a.Timestamp = time.Now()
}