public abstract void GetBytes(byte[] data);
public void fill(byte[] foo, int start, int len) { while (len > tmp.Length) { rng.GetBytes(tmp); Array.Copy(tmp, 0, foo, start, tmp.Length); len -= tmp.Length; start += tmp.Length; } rng.GetBytes(tmp); Array.Copy(tmp, 0, foo, start, len); }