Code example for SecureRandom

0
            random = rParam.getRandom();
        } 
        else 
        { 
            key = (RSAKeyParameters)param;
            random = new SecureRandom();
        } 
 
        if (key instanceof RSAPrivateCrtKeyParameters)
        { 
            throw new IllegalArgumentException("generator requires RSA public key");
        } 
    } 
 
    /** 
     * Generate a suitable blind factor for the public key the generator was initialised with. 
     * 
     * @return a random blind factor 
     */ 
    public BigInteger generateBlindingFactor()