Trand is more secure alternative to rand To compile: gcc your.c -L path_to_libtrand.a -ltrand