Esempio n. 1
0
    private static int GetFramesReverse(ulong s0, ulong s1, ulong n0, ulong n1, int loop)
    {
        var rand = new Xoroshiro128Plus(n0, n1);

        for (int i = 0; i < loop; i++)
        {
            _ = rand.Prev();
            if (rand.GetState() == (s0, s1))
            {
                return(i);
            }
        }
        return(-1);
    }