1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* * Rule: MSC32-C * Source: wiki * Status: FAIL - Should trigger MSC32-C violation */ #include <stdio.h> #include <stdlib.h> void func(void) { for (unsigned int i = 0; i < 10; ++i) { /* Always generates the same sequence */ printf("%ld, ", random()); } }