why does RAND_add() take "randomness" as a "double"?

Ken Goldman kgoldman at us.ibm.com
Wed May 22 13:31:29 UTC 2019


On 5/21/2019 10:07 PM, Salz, Rich via openssl-users wrote:
>      >Then just set it to 1.0 and be done with it.
>      
>>     That hardly helps on systems that don't have floating point at all.
> 
> No it doesn't.  Such systems aren't supported by OpenSSL.  There are many places were floating point is used/supported.
> Removing the second arg to RAND_add is the least of the problems (look at various asm files)

The assembler code can be bypassed on those systems.

I see a few places where it's used to force an alignment, but perhaps 
there's another way.

It's used in test programs to report performance.

For us, the random number generator was the problem.





More information about the openssl-users mailing list