[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: update-alternatives and /dev/random



On Sun, Nov 20, 2011 at 6:51 PM, Guillem Jover <guillem@debian.org> wrote:
> On Sun, 2011-11-20 at 18:41:42 +0530, harish badrinath wrote:
>> On Sun, Nov 20, 2011 at 11:47 AM, Guillem Jover <guillem@debian.org> wrote:
>> > Hmm, ok this seems fine. And you have the random translators running
>> > right?
>> <snip>
>> root@debian:~# ps-hurd aux | grep random
>> root       503  0.0  0.1  146M  828K p1 S     6:50PM  0:00.06 grep random
>> root       100  0.0  0.1  130M  940K  - So    6:36PM  0:00.08 /hurd/random --se
>
> So there's only one translator running when there should be two, one
> for /dev/random and one for /dev/urandom. Can you check that the other
> you didn't include the showtrans output for is correct too?

root@debian:~# showtrans /dev/random
/hurd/symlink /etc/alternatives/random
root@debian:~# showtrans /etc/alternatives/random
/hurd/symlink /dev/random-hurd
root@debian:~# showtrans /dev/random-hurd
/hurd/random --seed-file /var/spool/random-seed
root@debian:~# showtrans /dev/urandom
/hurd/symlink /etc/alternatives/urandom
root@debian:~# showtrans /etc/alternatives/urandom
/hurd/symlink /dev/urandom-hurd
root@debian:~# showtrans /dev/urandom-hurd
/hurd/random --seed-file /var/spool/random-seed --fast

/dev/urandom has --fast option to random translator, while /dev/random does not.
Both seem to point to the same translator /hurd/random.

Regards,
Harish


Reply to: