/dev/random : how to use it properly?

I am using
ftp://developers.cogentrts.com/qnx4/stowable/stowable-devrand.tar.gz
It is intalled to use irq 1 (keyboard) as default source of enthropy.
In my installation there is no keyboard at all.

Is it a good idea to attach Dev.random to the IDE’s irq 14 or even NIC’s
one (in my case irq 9)?

PS Dev.random v1.00A

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:opr5ua1hdbo93ri4@inn.qnx.comnews.mail.ru

I am using
ftp://developers.cogentrts.com/qnx4/stowable/stowable-devrand.tar.gz
It is intalled to use irq 1 (keyboard) as default source of enthropy.
In my installation there is no keyboard at all.

Is it a good idea to attach Dev.random to the IDE’s irq 14 or even NIC’s
one (in my case irq 9)?

Looks like you don’t have a choice anyway. I would use the NIC one.

PS Dev.random v1.00A

Is it OK that I can see the presence of Dev.random driver when I do “who”
command?

The “who” shows:
Userid Device Login Idle Command
System //0 bla-bla —:–:-- Dev.random
tony //1/dev/con1 bla-bla 0:00:00 who

Thank you.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:opr54xwbovo93ri4@inn.qnx.comnews.mail.ru

Is it OK that I can see the presence of Dev.random driver when I do “who”
command?

Sure it just mean it’s attached to the console (stdout)

The “who” shows:
Userid Device Login Idle Command
System //0 bla-bla —:–:-- Dev.random
tony //1/dev/con1 bla-bla 0:00:00 who

Thank you.

On Thu, 8 Apr 2004 20:50:29 -0400, Mario Charest postmaster@127.0.0.1
wrote:

Sure it just mean it’s attached to the console (stdout)
The “who” shows:
Userid Device Login Idle Command
System //0 bla-bla —:–:-- Dev.random
tony //1/dev/con1 bla-bla 0:00:00 who

This frightens me a bit, I’m trying to port ssh-1.2.33 to qnx4, I got it
nearly working…
The issues I have with it are “logout hang” and lots of complains in
syslog regarding “Cannot find the controlling tty”.

If I do “ssh somehost who” I get this:
Userid Device Login Iddle Command
System //0 bla-bla —:–:-- ksh

On all other *nixes this looks as expected: user //2/dev/tty2 bla-bla who

So I’m just curious if Dev.random is REALLY supposed to behave like this.

Please comment.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:opr56w7hxho93ri4@inn.qnx.comnews.mail.ru

On Thu, 8 Apr 2004 20:50:29 -0400, Mario Charest <postmaster@127.0.0.1
wrote:

Sure it just mean it’s attached to the console (stdout)
The “who” shows:
Userid Device Login Idle Command
System //0 bla-bla —:–:-- Dev.random
tony //1/dev/con1 bla-bla 0:00:00 who

This frightens me a bit, I’m trying to port ssh-1.2.33 to qnx4, I got it
nearly working…
The issues I have with it are “logout hang” and lots of complains in
syslog regarding “Cannot find the controlling tty”.

If I do “ssh somehost who” I get this:
Userid Device Login Iddle Command
System //0 bla-bla —:–:-- ksh

On all other *nixes this looks as expected: user //2/dev/tty2 bla-bla who

So I’m just curious if Dev.random is REALLY supposed to behave like
this.

If the source are available you could change it. Or maybe you could start it
like this
Dev.random >/dev/null </dev/null 2>dev/null


I think Dev

Please comment.

I’ve found the sources here:
ftp://ds2.etech.fh-hamburg.de/pub/qnx4/utils/devrand.tgz
but it is v0.4 while the binary I currently use shows in “sin ve” as
Dev.random v1.00A

v0.4 TODO file has a wish to add “multi-IRQ” feature, was it implemented?
I’d like to start Dev.random -i1 -i4 -i9 -i14 & (i.e. keyboard, modem, NIC
and IDE irqs simultaneously). It does start this way but how to make sure
it did hook all those vectors?

I could not contact Mr. Sam Roberts…

  1. where to find the current sources?
  2. is v1.00A the latest?

Tony.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:c80u9t$s9o$1@inn.qnx.com

I’ve found the sources here:
ftp://ds2.etech.fh-hamburg.de/pub/qnx4/utils/devrand.tgz
but it is v0.4 while the binary I currently use shows in “sin ve” as
Dev.random v1.00A

v0.4 TODO file has a wish to add “multi-IRQ” feature, was it implemented?
I’d like to start Dev.random -i1 -i4 -i9 -i14 & (i.e. keyboard, modem,
NIC
and IDE irqs simultaneously). It does start this way but how to make sure
it did hook all those vectors?

sin irq



I could not contact Mr. Sam Roberts…

  1. where to find the current sources?
  2. is v1.00A the latest?

Tony.

\

v0.4 TODO file has a wish to add “multi-IRQ” feature, was it
implemented?
I’d like to start Dev.random -i1 -i4 -i9 -i14 & (i.e. keyboard, modem,
NIC and IDE irqs simultaneously). It does start this way but how to make
sure
it did hook all those vectors?

sin irq

:frowning:
If started as Dev.random -i1 -i4 -i9 -i14 & it hooks to the last vector in
the line.
If started as Dev.random -i1,4,9,14 & it hooks to the first one…

By the way, what is the “-1” vector? A lot of managers hook to it.

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

By the way, what is the “-1” vector? A lot of managers hook to it.

-1 is a “synthetic” 50ms interrupt, driven off the timer interrupt.
(Basically Proc counts timer interrupts (irq 0), and every appropriate
number calls the handlers in the -1 chain.)

It is not recommended that any new code use it, instead a system
timer is recommended – but some of the system managers have not
been recoded (and will never be) to switch.

-David

Please follow-up to newsgroup, rather than personal email.
David Gibbs
QNX Training Services
dagibbs@qnx.com