Flowdock
method

generate_prime

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: BN
generate_prime(p1, p2 = v2, p3 = v3, p4 = v4) public

Generates a random prime number of bit length bits. If safe is set to true, generates a safe prime. If add is specified, generates a prime that fulfills condition p % add = rem.

Parameters

  • bits - integer

  • safe - boolean

  • add - BN

  • rem - BN

Show source
Register or log in to add new notes.