ruby-gpgme icon indicating copy to clipboard operation
ruby-gpgme copied to clipboard

Enabling GCRYCTL_ENABLE_QUICK_RANDOM

Open goldstar611 opened this issue 4 years ago • 2 comments

Hi, gpg's binary has a optional switch --debug-quick-random which will use non-blocking random sources and is nice to use for tests/CI.

How do I toggle with switch with GPGME? I searched the source here for several keywords such as "random" and "quick" and did not find it.

A brief cross reference to the GPG source at https://github.com/gpg/gnupg/blob/98c52aeb31f4bf2604727aacad982fb51c04063f/g10/gpg.c#L2908 shows me that for a low level API call I'd need to call a function like gcry_control or do something with a constant named GCRYCTL_ENABLE_QUICK_RANDOM but I did not find anything like these defined in any rb files here.

Thanks!

goldstar611 avatar Aug 02 '21 14:08 goldstar611

This would also simplify my specs greatly as well

kernelsmith avatar Aug 03 '21 14:08 kernelsmith

This request may soon be moot: https://lwn.net/Articles/884875/

goldstar611 avatar Feb 26 '22 19:02 goldstar611