Skip to content

Instantly share code, notes, and snippets.

Last active June 16, 2021 00:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?


How to build:

git clone
cd b12df62cf2d6cc04e8604712512b9102/
dotnet build
dotnet run

The expected output:

using RandomXSharp;
using System;
using System.Text;
namespace RandomXSharpSample
class Program
static void Main(string[] args)
RandomX r = RandomX.Create();
byte[] input = Encoding.ASCII.GetBytes("hello world");
byte[] hash = r.ComputeHash(input);
for (int i = 0; i < hash.Length; i++) {
byte b = hash[i];
Console.Write("{0:x2}", b);
<Project Sdk="Microsoft.NET.Sdk">
<PackageReference Include="RandomXSharp" Version="0.2.0-dev.14" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment