function p = isLegacyCommand(cmd)
%MATLAB Code Generation Private Function

% Ensure that the command is one of the legacy commands and that it is a
% constant

%   Copyright 2013 The MathWorks, Inc.
%#codegen
coder.inline('always');
p = strcmp(cmd, 'seed') || strcmp(cmd, 'state') || strcmp(cmd, 'twister');
