Csound Csound-dev Csound-tekno Search About

Re: rand() was Re: Looking towards v3.48

Date1998-04-13 17:01
FromMike Berry
SubjectRe: rand() was Re: Looking towards v3.48
I did the random generator research for some cryptography projects and the
code that I found is extremely flat and obviously long period.  It would not
have to be a new ugen, it could just replace the calls to the ANSI function rand().
	We seem to be about split on the new ugen/replace question.  I would suggest
the following.  The new random code be substituted in the old rand ugen.  That
way the most obvious random ugens use an actually random source.  This will
work for all old scores where the assumption was that rand was random.  Then
we add a ugen shortrnd, which uses the old, short-period random generator. 
Those people who want its characteristics can simply substitute the call.
-- 
Mike Berry
mikeb@nmol.com
http://www.nmol.com/users/mikeb