compile fix for gcc3.4.5
add command randomkey