libpfrng: use precalculated table for weighting