Complete Book of Dwarves?
I believe it may be PHBR6, 2nd Edition Player's Handbook Rules Supplement - Complete Book of Dwarves. Here's the excerpt regarding the name generation:
Other Characteristics
Each dwarf name consists of a prefix and a suffix. To create a name either select or roll...