This is scdrand, a program that will connect to a running scdaemon (the daemon used by GnuPG to access smart cards) and extract random numbers generated by a smart card.