1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Provide a stub random_byte() to make 'testbn' compile again.

The function bignum_random_in_range() is new to sshbn.c since I last
tried to run the bignum test code.
This commit is contained in:
Simon Tatham 2015-06-08 19:22:55 +01:00
parent 7366fde1d4
commit 0aa92c8fa2

View File

@ -1892,6 +1892,12 @@ void modalfatalbox(const char *p, ...)
exit(1);
}
int random_byte(void)
{
modalfatalbox("random_byte called in testbn");
return 0;
}
#define fromxdigit(c) ( (c)>'9' ? ((c)&0xDF) - 'A' + 10 : (c) - '0' )
int main(int argc, char **argv)