[OT] Getting a random number

W

Wolfgang Draxinger

Joachim said:
But that then would create very predictable 'random' numbers.

That's not the point, if the OPs intention is to resolve network
collisions. He'll be fine if the method ensures, that no two
stations are likely to start transmission at the same time.

Given a good PRNG (like mersene twister) it's sufficient to start
each PRNG with it's own seed. In the OPs applications it even is
no problem if single PRNGs get reinitialized by a system reset.

OTOH he's implementing it on a DSP. I bet there's some hardware
attached, that delivers some entropy. Like the lowest
significant bit of an A/D conversion.

Wolfgang Draxinger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top