Difference between revisions of "Talk:Random Numbers"

From OpenSSLWiki
Jump to navigationJump to search
(void * casting hack?)
 
(Added discussion on RAND_poll)
Line 4: Line 4:
  
 
--[[User:Ppelleti|Ppelleti]] 03:00, 8 March 2013 (UTC)
 
--[[User:Ppelleti|Ppelleti]] 03:00, 8 March 2013 (UTC)
 +
 +
==Is RAND_poll part of the public API?==
 +
 +
I have removed the question about whether RAND_poll is considered part of the public API. The "rand" module contains two header files: rand.h and rand_locl.h. The first becomes part of the deployment when you install OpenSSL, whilst the latter does not. This is a common theme throughout the library. Basically anything in the *_locl.h header files should be considered private to the library, whilst anything that gets deployed should be considered part of the public API. Since RAND_poll is in rand.h (which gets deployed during installation) it should be considered part of the public API.
 +
 +
--[[User:Matt|Matt]] 12:26, 9 March 2013 (UTC)

Revision as of 12:26, 9 March 2013

void * casting hack?

The thing about casting to void* and using "%p" just to print an unsigned long in hex seemed a little odd to me. Am I missing something as to why "0x%lx" isn't a viable option?

--Ppelleti 03:00, 8 March 2013 (UTC)

Is RAND_poll part of the public API?

I have removed the question about whether RAND_poll is considered part of the public API. The "rand" module contains two header files: rand.h and rand_locl.h. The first becomes part of the deployment when you install OpenSSL, whilst the latter does not. This is a common theme throughout the library. Basically anything in the *_locl.h header files should be considered private to the library, whilst anything that gets deployed should be considered part of the public API. Since RAND_poll is in rand.h (which gets deployed during installation) it should be considered part of the public API.

--Matt 12:26, 9 March 2013 (UTC)