func()

in pkg/generator/aws/vpcflow/vpcflow.go [92:108]


func (v *Vpcflow) randomize() {
	v.SrcAddr = random.IPv4()
	v.DstAddr = random.IPv4()
	v.SrcPort = random.Port()
	v.DstPort = random.Port()
	v.Protocol = rand.Intn(256)
	v.Packets = rand.Intn(1048576)
	v.Bytes = v.Packets * 1500
	v.End = time.Now().Unix()
	v.Start = v.End - int64(rand.Intn(60))
	v.Action = actions[rand.Intn(2)]
	if v.Packets == 0 {
		v.LogStatus = statuses[2]
	} else {
		v.LogStatus = statuses[rand.Intn(2)]
	}
}