in pkg/generator/clf/clf.go [75:99]
func (g *Generator) randomize() {
now := time.Now()
if g.staticTime != nil {
now = *g.staticTime
}
g.Record = Record{
Host: random.IPv4(),
Ident: "-",
AuthUser: "-",
Date: now.Format(timestampFmt),
Request: fmt.Sprintf(
`"%s %s %s"`,
random.HTTPMethod(),
fmt.Sprintf("/random-%d.html", rand.Intn(100)),
random.HTTPVersion(),
),
Status: strconv.Itoa(random.HTTPStatus()),
Bytes: strconv.Itoa(rand.Intn(10000)),
}
if g.combined {
g.Record.Referer = "-"
g.Record.UserAgent = `"` + random.UserAgent() + `"`
}
}