progs/tests: Use rand() instead of random().

More portable. Same implementation on Linux.
1 file changed