Sometimes it’s good not to help hackers knowing how your site is build up. You can add (and activate) a plugin to remove the generator tag.
<?php
add_action('init', 'removeWPVersionInfo');
function removeWPVersionInfo() {
remove_action('wp_head', 'wp_generator');
}
?>
I am interested to know if you can modify the generator tag.