瀏覽代碼

php : fixed bug in Std.rand (on windows the range was limited)

Franco Ponticelli 14 年之前
父節點
當前提交
fcf92999f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/php/_std/Std.hx

+ 1 - 1
std/php/_std/Std.hx

@@ -51,6 +51,6 @@
 	}
 	}
 
 
 	public static function random( x : Int ) : Int {
 	public static function random( x : Int ) : Int {
-		return untyped __call__("rand", 0, x-1);
+		return untyped __call__("mt_rand", 0, x-1);
 	}
 	}
 }
 }