func()

in pkg/generator/citrix/cef/cef.go [182:216]


func (c *CEF) randomize() {
	c.Timestamp = time.Now()
	c.TimeLayout = randString(timeLayouts)

	c.Facility = randString(facilities)
	c.Priority = randString(priorities)

	c.Addr = random.IPv4()

	c.CEFVersion = rand.Intn(2)
	c.Vendor = randString(vendors)
	c.Product = randString(products)
	c.Version = randString(versions)
	c.Module = randString(modules)
	c.Violation = randString(violations)
	c.Severity = rand.Intn(10) + 1

	c.SrcAddr = random.IPv4()
	c.Geo = randString(locations)
	c.SrcPort = random.Port()
	c.Method = randString(methods)
	c.Request = randString(requests)
	c.Message = randString(messages)
	c.EventID = rand.Intn(1000)
	c.TxID = rand.Intn(100000)
	c.Profile = randString(profiles)
	c.PPEID = fmt.Sprintf("PPE%d", rand.Intn(9)+1)
	sessID := make([]byte, 16)
	rand.Read(sessID)
	c.SessID = hex.EncodeToString(sessID)
	c.SeverityLabel = randString(severityLabels)
	c.Year = c.Timestamp.Year()
	c.ViolationCategory = randString(violationCategory)
	c.Action = randString(actions)
}