use random buffer