The botanical name of kalonji is Nigella Sativa. They look almost exactly like onion seeds, but the flavor slightly differs. Onion seeds are rarely used in cooking and are mainly for actually growing onions!
Although you will find many sources that say onion seeds and kalonji are the same; even I thought they were; this is not the case! Kalonji and Onion Seeds come from two completely different families.