It 's consistent with the long-held federal view on this medicine , and that is that marijuana is the equivalent of heroin and cocaine , '' said Nathan Barankin , a spokesman for California 's attorney general , Bill Lockyer . ''