using random lib to generate random token on server