public static ErrorCode RunPatternSeed(UnmanagedRantContext context, UnmanagedPattern pattern, PatternOptions options, long seed, out UnmanagedOutput output) { RantOutput o = null; context.Run(() => o = context.Rant.Do(pattern.Pattern, seed, options.CharLimit, options.Timeout)); output = new UnmanagedOutput(o); return context.LastErrorCode; }
public static ErrorCode RunPatternSeed(UnmanagedRantContext context, UnmanagedPattern pattern, PatternOptions options, long seed, out UnmanagedOutput output) { RantOutput o = null; context.Run(() => o = context.Rant.Do(pattern.Pattern, seed, options.CharLimit, options.Timeout)); output = new UnmanagedOutput(o); return(context.LastErrorCode); }