Both prepositions are fine, and the meaning is the same. I suspect that you will find 'from' more often in the spoken language and 'of' more often in the written language, but the difference in register is minimal.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.