Updates to randori port to make it compatible with latest C# changes