Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-07 Thread Matti Nykyri
On Sat, Jun 07, 2014 at 12:03:29AM +0300, Matti Nykyri wrote: On Thu, Jun 05, 2014 at 10:58:51PM -0500, Canek Peláez Valdés wrote: On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-07 Thread Marc Joliet
Am Sat, 7 Jun 2014 12:19:11 +0300 schrieb Matti Nykyri matti.nyk...@iki.fi: On Sat, Jun 07, 2014 at 12:03:29AM +0300, Matti Nykyri wrote: [...] unsigned char get_6bits () { static unsigned int rand = 0; //(sizeof(int) = 32) Just an itty bitty nitpick: since you already require C99 as

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread meino . cramer
Canek Peláez Valdés can...@gmail.com [14-06-06 17:36]: On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator (http://burtleburtle.net/bob/rand/isaacafa.html). Currently the implementation

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread null_ptr
On 06/06/14 20:39, meino.cra...@gmx.de wrote: To get an better imagination of that...suppose the rand() would only return numbers in the range of 1...12 and the alphabet has only 8 characters (as 2^32 is not devideable by 62) rand(): 1 2 3 4 5 6 7 8 9 10 11 12 rand()%N : rand()%7 1 2 3 4 5 6 7

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread Canek Peláez Valdés
On Fri, Jun 6, 2014 at 1:39 PM, meino.cra...@gmx.de wrote: Canek Peláez Valdés can...@gmail.com [14-06-06 17:36]: On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread Matti Nykyri
On Thu, Jun 05, 2014 at 10:58:51PM -0500, Canek Peláez Valdés wrote: On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator (http://burtleburtle.net/bob/rand/isaacafa.html). Currently the

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-06 Thread Matti Nykyri
On Fri, Jun 06, 2014 at 08:39:28PM +0200, meino.cra...@gmx.de wrote: Canek Peláez Valdés can...@gmail.com [14-06-06 17:36]: On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator

[gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-05 Thread meino . cramer
Hi, I am experimenting with the C code of the ISAAC pseudo random number generator (http://burtleburtle.net/bob/rand/isaacafa.html). Currently the implementation creates (on my embedded linux) 32 bit hexadecimal output. From this I want to create random numbers in the range of [a-Za-z0-9]

Re: [gentoo-user] OT: Mapping random numbers (PRNG)

2014-06-05 Thread Canek Peláez Valdés
On Thu, Jun 5, 2014 at 9:56 PM, meino.cra...@gmx.de wrote: Hi, I am experimenting with the C code of the ISAAC pseudo random number generator (http://burtleburtle.net/bob/rand/isaacafa.html). Currently the implementation creates (on my embedded linux) 32 bit hexadecimal output. So it's a