AutosarC++19_03-A26.5.1

Pseudorandom numbers shall not be generated using std::rand()

Required inputs: IR

This rule prevents the use of a configurable set of functions.

Possible Messages

Key

Text

Severity

Disabled

forbidden_libfunc_call

Call to forbidden function.

None

False

Options

blacklist

blacklist

Type: dict[bauhaus.analysis.config.FileGlobPattern, list[bauhaus.analysis.config.GlobPattern]]

Default:

{
   '*stdlib.h': ['rand']
}
Dictionary of header globbing to (list of) function name globbing(s) of forbidden functions.