not limiting random seed to 99
This commit is contained in:
parent
ee655cf8c4
commit
641c48ee00
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: moteid.c,v 1.1 2006/08/21 12:11:19 fros4943 Exp $
|
* $Id: moteid.c,v 1.2 2008/10/28 15:37:34 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dev/moteid.h"
|
#include "dev/moteid.h"
|
||||||
|
@ -45,7 +45,7 @@ doInterfaceActionsBeforeTick(void)
|
||||||
{
|
{
|
||||||
if (simMoteIDChanged) {
|
if (simMoteIDChanged) {
|
||||||
simMoteIDChanged = 0;
|
simMoteIDChanged = 0;
|
||||||
random_init((simMoteID+1) * 100 % 99);
|
random_init((simMoteID+1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue