generateId() for salt and identity: like meteor