Simplify `GenerateBytes()`.