Updated to new lifetime notation, imported new RngUtil trait.