added rndstr for generating random strings