Hello so for my perf_fuzzer I re-use the trinity random.c, and today I hit [ 1241.026870] traps: perf_fuzzer[4509] trap divide error ip:40a779 which maps to the taviso() routine which is doing: case 1: r = rand() % rand(); #if __WORDSIZE == 64 r <<= 32; r |= rand() % rand(); #endif break; which is a divide by zero if rand() returns 0. Is there a good way to fix this short of a lot of special case checks? Vince Weaver vincent.weaver@xxxxxxxxx http://www.eece.maine.edu/~vweaver/ -- To unsubscribe from this list: send the line "unsubscribe trinity" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html