generate 4096 bytes if bytes is undefined