irand and flrand now use the C++11 random generator engine.

Made va() safe by replacing vsprintf with vsnprintf.