Seed random number generator.

This commit is contained in:
James Roseborough
2008-08-08 16:35:04 +00:00
parent 9f9d8872db
commit 32e700aabd

View File

@@ -209,7 +209,7 @@ public class MathLib extends LFunction {
}
case RANDOM: {
if ( random == null )
random = new Random();
random = new Random(1);
switch ( vm.gettop() ) {
case 1:
vm.resettop();