Bytes 0,1 = n, bytes 2, 3 = i,j for 2d (for 1d these bytes are set to null), the rest of the seed is set as bits from 0 to n-1 within successive bytes. Excess bits in the last byte are set to 0.