Hanging Pidgin When Generating Private Keys on Ubuntu

Ei Guys, have you ever encountered this error? When using the OTR(Off-The-Record) Plugin in Pidgin, when enabling it and it generates private keys, it suddenly hang and freezes? The culprit is the /dev/random in which it takes too long for it to process the generation. One solution I found on the wild is to install haveged which helps the /dev/random to generate faster. To install, simple use sudo apt-get install haveged