Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the API name in the doc example, improve test.
This also makes the example more realistic, people are unlikely to want this API to get a value into a simple `int` type, we've got direct APIs for that. So have the example use an array as if it is a bignum of its own. I start by fixing the API name in the doc example as scoder@ noted in the original code review after merge. But I noticed one thing in the test that could be done better so I added that as well: we need to guarantee that all bytes of the result are overwritten. This now pre-fills the result with data in order to ensure that. _(assuming ctypes isn't undoing that behind the scenes...)_
- Loading branch information