I don't smoke, but I know a lot of people find it aids their creativity and ability to focus (in reasonable doses). Those are useful traits for hackers, at least in some tasks. (More designy things would show greater improvement than the mathy parts of the job.)