Pwgen::RandomGenerator
Inherits Pwgen::Generator < Reference < Object
Generates completely random passwords using secure random number generation.
This generator creates passwords by randomly selecting characters from
a pool based on the specified feature flags. It ensures cryptographic
security by using Random::Secure.
Instance methods
Generates a random password.
length: Length of the password (must be positive)flags: Feature flags (Digits, Uppers, Symbols, Ambiguous, NoVowels)remove: Optional string of characters to exclude
Raises Pwgen::Error if parameters are invalid or if the character pool
becomes empty after removals.