Moved RandomGenerator from security to util.