Closed source voting machines will never be safe, in fact not even open source ones would always be safe. Paper is the voter's friend.
I'm actually a fan of purple dye. It seems effective at stopping one form of election fraud. Preferably accompanied by a bank of cameras to show every ballot went into the box (and no others).