Branch: Tag:

2016-03-29

2016-03-29 06:26:51 by Martin Nilsson <nilsson@fastmail.com>

Comment on the soundness of the bitstring to integer conversion.

2112:    pop_stack();    }    +  /* Generates a number 0<=c<limit from random bits taken from the +  int_buffer. Follows the NIST SP800-90A method for converting bit +  sequences into bound numbers, described in section B.5.1.1, and +  summarized as "throw away attempts that are too large". */    static INT_TYPE read_int(INT_TYPE limit)    {    if(limit <= 1) return 0;