[fix] generate key