Some vegetarians in developing countries do not have a B12 problem (which also causes anemia) because their food and water are more dirty, and there (B12) bacteria producing. For those vegans at least, their best bet is to accidentally eat enough food contaminated with bacteria or feces to consume decent quantities of B12.
Source: The Dietitian's Guide to Vegetarian Diets, 3rd edition, 2011. See page 192.
https://books.google.com/books?id=eJ10HoYQ2woC&pg=PA183#v=on...