Dear Alex and bugs,
I just checked the source tree, and karc4random() does not use read_random_unlimited().
Well, it does not use it directly ... I see a call to it elsewhere in:
stating that there are numerous references to e.g. karc4random() strewn about all over the source tree,
and it would be a good idea to update those references to use the superior CSPRNG in:
But it seems nobody has bothered to do that.
I'm just sending this bug report in, because the mmap randomisation is a new commit, i.e. it is new
code, and since it is new code it should be using the best CSPRNG available and not the old references
Here is the relevant source snippet:
struct timeval tv_now;
/* Initialize array if needed. */
if ((++arc4_numruns > ARC4_MAXRUNS) ||
(tv_now.tv_sec > arc4_tv_nextreseed.tv_sec))
ret = arc4_randbyte();
ret |= arc4_randbyte() << 8;
ret |= arc4_randbyte() << 16;
ret |= arc4_randbyte() << 24;
On 25 November 2010 16:32, Alex Hornung (via DragonFly issue tracker) <firstname.lastname@example.org>
After a short check it uses exactly the same interface to get the 'randomness'
So what exactly do you mean? And why is karc4random no good?