Rather than hacking the core files, which can be replaced with an update, place this line in your template index.php file above the </head> tag.
<?php $this->setGenerator('Changethisline'); ?>
Replace Changethisline with whatever you want to show or just leave it empty.