The FBI is having recruiting problems. So they may be looking for a few good pot heads.

The Federal Bureau of Investigation has long had a clear policy on marijuana: It doesn’t hire anyone who has smoked it in the previous three years.

But the bureau is rethinking that stance, according to FBI Director James B. Comey, who addressed the issue at an annual conference in New York on Monday.

Mr. Comey said that the FBI may have to loosen up its stance in order to attract talented new agents, especially those equipped to go after some of the world’s most sophisticated hackers and cybercriminals. He spoke on the same day that the Justice Department indicted five Chinese army officers, alleging they hacked into U.S. companies’ computers, a charge that Beijing denied.

Congress has authorized the FBI to add 2,000 personnel to its rolls this year, and many of those new recruits will be assigned to tackle cybercrimes, a growing priority for the agency. That is a problem, said Mr. Comey, as a lot of the nation’s top computer programmers and hacking gurus are also fond of marijuana.

“I have to hire a great work force to compete with those cybercriminals, and some of those kids want to smoke weed on the way to the interview,” Mr. Comey said. He added that the agency was now “grappling” with how to amend its marijuana policies.

This puts a big hole in the “pot makes people stupid” argument.