Add buffer support to winrand. LP#1256172