|
On Wed, 14 Jul 1999, Luis Villa wrote:
> Probably a dumb question, but how do I link in another copy of libc,
> besides the hacked-down one already present in legOS? I can't just copy
> the one on top of the other, and the linker should just link in the first
> it finds, correct?
You could either take just the source file out of gnulibc and link it in,
or you could change your setup to actually use the gnulibc (which is what
I am doing, although not with legOS).
> At any rate, it is mostly academic. The stripped down version of the PRNG
> I found takes only about 800B, and if you want to get numbers other than
> 0-65535, it only takes another 1100B to link in Kekoa's library. I
> can't imagine any libc stuff being smaller than that. It is
> also very fast, and is provably very random. Once I hear from the author,
> I will post full code. In the meantime, I've posted a link to his site
> and a brief description of the few necessary modifications to make it
> work in the HOWTO.
It depends on what you want the RNG for. If all you want is to make your
robot behavior less predictable, that should be fine. If you are wanting
to do some kind of simulation (for example, your robot could do a Monte
Carlo simulation of possible behaviors and expected results to choose based
on the simulation), then you probably want a better RNG with good spectral
properties.
John A. Tamplin Traveller Information Services
jat@LiveOnTheNet.COM 2104 West Ferry Way
256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801
|
|
Message has 1 Reply: | | Re: random numbers
|
| (...) The author claims it has very good spectral properties, but I have no way of testing that. The only other reference I have found to it on the net is from a group at the University of Salzburg, who state that it performed well in their tests. (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: random numbers
|
| (...) Probably a dumb question, but how do I link in another copy of libc, besides the hacked-down one already present in legOS? I can't just copy the one on top of the other, and the linker should just link in the first it finds, correct? At any (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
|
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|