Fixed rng file maker. buffer was not flushing for small writes, flush it down using .Close()