func RandomEvent()

in pkg/generator/winlog/random.go [82:99]


func RandomEvent(eventID uint32, now time.Time) Event {
	return Event{
		EventID: EventID{
			ID: eventID,
		},
		Task:     uint16(rand.Intn(65536)),
		Keywords: 0x8020000000000000,
		TimeCreated: TimeCreated{
			SystemTime: now,
		},
		RecordID:    rand.Uint64(),
		Correlation: Correlation{},
		Execution: Execution{
			ProcessID: uint32(rand.Intn(65536)),
			ThreadID:  uint32(rand.Intn(65536)),
		},
	}
}