when generating temp directory in libericstools initialize srand there, we shouldn't have to remember to do it in calling program
more work on gpkg