As one of the main important enabling technology for the wireless physical layer security, Key generation has been widely studied that has advantage of low computational complexity and simple implementation. But existing related research have the problem that can't keep good performance in the static environment. Therefore, we analysis traditional technology and improve quantization module which produce error in the wireless sensor network. And finally presents an improved quantization error key generation ...