Hi guys,

Sorry Matt, I won't reply, but since it's about random, this reminds me
something about generating a random seed.

PIC18F47J53 has a 12-bits ADC peripheral. Some channels aren't implemented
in 28 pins variant (that is, 27J53). Datasheet says "Performing a conversion
on unimplemented channels will return random values." That could be used to
generate a seed... though it may not be possible to use this for all PICs.

Cheers,
Seb

2011/2/16 mattschinkel <[email protected]>

> Hey Guys,
>
> Why was Stef Mientki's library converted instead of Wouter's from the
> old jal?
>
> I see there was an issue a long time ago when the current random
> library was created. for porting a lib to jallib:
> http://code.google.com/p/jallib/issues/detail?id=55
>
> I find the old lib from Wouter is better since it creates a new start
> random number each time the PIC is reset.
>
> The current random lib (author Joep, sources Stef) always generates
> the same number on startup.
> quote:
> "-- Note: this library will recreate the same sequence. If this is
> undesired, assign a
> --       different (non-zero!) startup-value to -rndx and/or _rndx at
> startup."
>
> Matt.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to