# Method Crypto.DH.Parameters()->validate()

Method validate

  ```bool`` validate(`int(0..)` `effort`)`

Description

  Validate that the DH Parameters doesn't have obvious security weaknesses. It will first attempt to verify the prime p using Donald Knuth's probabilistic primality test with provided `effort`. This has a chance of pow(0.25,effort) to produce a false positive. An `effort` of 0 skipps this step. The second test verifies that g is of high order.