[Haskell-cafe] Re: Specify array or list size?

Daniel Carrera dcarrera at digitaldistribution.com
Sat May 7 10:34:02 EDT 2005


Max Vasin wrote:

> But why do you need that? Where do need to make an assumption about the size
> of the list? 

I'm implementing the RC4 algorithm, which requires a state array with 
256 elements containing the bytes from 0 to 255. As the algorithm 
progresses, the elements of the array get shuffled around. This is what 
drives the pseudo-random number generator. But the size of the state 
array is always 256.

Cheers,
Daniel.


More information about the Haskell-Cafe mailing list