removed time/randomness dependency from session library