Browse Source

don't create a md5 instance (fixed issue #338)

Nicolas Cannasse 14 years ago
parent
commit
0bf50777e3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      std/haxe/Md5.hx

+ 1 - 3
std/haxe/Md5.hx

@@ -35,7 +35,7 @@ class Md5 {
 		#elseif php
 			return untyped __call__("md5", s);
 		#else
-			return inst.doEncode(s);
+			return new Md5().doEncode(s);
 		#end
 	}
 
@@ -52,8 +52,6 @@ class Md5 {
  * See http://pajhome.org.uk/site/legal.html for details.
  */
 
-	static var inst = new Md5();
-
 	function new() {
 	}