fix randomstring
Merge pull request #2068 from webzwo0i/fix-randomstring

fix randomstring