示例#1
0
 public ID6(TinyMT rng)
 {
     Status  = rng.CurrentState();
     RandNum = rng.Nextuint();
     TID     = (ushort)(RandNum & 0xFFFF);
     SID     = (ushort)(RandNum >> 16);
     TSV     = (ushort)((TID ^ SID) >> 4);
 }
示例#2
0
        private void parseseed(uint seed)
        {
            var rng = new TinyMT(seed);

            lock (_locker)
            {
                seedlist.Add(rng.CurrentState().ToString());
                UpdateTable(null);
            }
        }