updated randstr to gen 10 chars