don't mis-initialize random number generator with default value
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1615 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -54,14 +54,14 @@
|
||||
#define N 38
|
||||
static DescriptorStub * descriptors [N];
|
||||
|
||||
static inline void
|
||||
/*static inline void
|
||||
seed()
|
||||
{
|
||||
static struct timeval tv;
|
||||
gettimeofday (&tv, 0);
|
||||
|
||||
srand (tv.tv_sec ^ tv.tv_usec);
|
||||
}
|
||||
}*/
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
||||
@@ -239,7 +239,7 @@ __attribute__((constructor)) _init() {
|
||||
exit(1);
|
||||
|
||||
/* initialize RNG */
|
||||
srand(time(0));
|
||||
// srand(time(0));
|
||||
|
||||
mono_descriptor->UniqueID = ID_MONO;
|
||||
mono_descriptor->Label = strdup("tap_pinknoise");
|
||||
|
||||
Reference in New Issue
Block a user