Why not use the correct way to remove it altogether and then add a new generator tag?
remove_action('wp_head', 'wp_generator');
add_action('wp_head', 'my_wp_generator');
function my_wp_generator() {
echo '<meta name="generator" content="WordPress" />';
}