mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
srand
This commit is contained in:
parent
826b0e5033
commit
e2c1394007
@ -164,6 +164,10 @@ NP_Initialize(NPNetscapeFuncs *browserFuncs,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Seed the lame random number generator in rand(); we use it to
|
||||||
|
// select a mirror for downloading.
|
||||||
|
srand((unsigned int)time(NULL));
|
||||||
|
|
||||||
return NPERR_NO_ERROR;
|
return NPERR_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user