polarssl: fix return code of entropy function