Skip to content

Instantly share code, notes, and snippets.

@Lusamine
Created December 27, 2021 13:39
Show Gist options
  • Save Lusamine/ad271f403494daa8d2b9b90758c22027 to your computer and use it in GitHub Desktop.
Save Lusamine/ad271f403494daa8d2b9b90758c22027 to your computer and use it in GitHub Desktop.
If you prefer to use one copy/paste from CopySeed instead of two...

Change

    // Initial state
    // s0 should be s1, s0 from CS
    // s1 should be s3, s2 from CS
    ulong s0 = 0x0123456789ABCDEF;
    ulong s1 = 0x0123456789ABCDEF;

to

    // Initial state
    string ram = "0123456789ABCDEF0123456789ABCDEF";
    string str0 = ram.Substring(16).Trim();
    string str1 = ram.Substring(0, 16);
    ulong s0 = Convert.ToUInt64(str0, 16);
    ulong s1 = Convert.ToUInt64(str1, 16);

in any of my LINQ scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment