public static void SetSeed(uint w) { _w = w; _x = _w << 13; _y = (_w >> 9) ^ (_x << 6); _z = _y >> 7; _seeds = new RandDic(_x, _y, _z, _w); }
public static void SetSeed() { _w = (uint)(Environment.TickCount ^ ((Environment.TickCount >> 24) & 0xff) ^ (Environment.TickCount << 26)); _x = _w << 13; _y = (_w >> 9) ^ (_x << 6); _z = _y >> 7; _seeds = new RandDic(_x, _y, _z, _w); }