Fix an issue when the RNG gives all 0 (or if it fails and the stack buffer contained all 0).
Fix compiler error when ECC_SQUARE_FUNC is set to 0.
Simplify vli_mmod_fast.