From 0090bce4438c28bb520d32fcdb5e07985995da8c Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 26 Apr 2017 14:48:17 +0300 Subject: [PATCH] NumberOfPhrases moved out to UnmanagedBridge --- .../WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.h | 1 + dotnet/WhiteRabbit/Constants.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.h b/dotnet/WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.h index f0acb8f..10a11c6 100644 --- a/dotnet/WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.h +++ b/dotnet/WhiteRabbit.UnmanagedBridge/WhiteRabbit.UnmanagedBridge.h @@ -9,6 +9,7 @@ namespace WhiteRabbitUnmanagedBridge { public ref class MD5Unmanaged { public: + literal int PhrasesPerSet = 16; static void ComputeMD5(unsigned int* input, unsigned int* output); }; } diff --git a/dotnet/WhiteRabbit/Constants.cs b/dotnet/WhiteRabbit/Constants.cs index 1894148..13a4d21 100644 --- a/dotnet/WhiteRabbit/Constants.cs +++ b/dotnet/WhiteRabbit/Constants.cs @@ -2,6 +2,6 @@ { internal class Constants { - public const int PhrasesPerSet = 16; + public const int PhrasesPerSet = WhiteRabbitUnmanagedBridge.MD5Unmanaged.PhrasesPerSet; } }