Permalink
Browse files

make some extra vars constant

  • Loading branch information...
1 parent 0afe394 commit ec203c5bff1afecb3f5888dc70a9634f97b7ee06 @mherkender committed Mar 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sha1.as
View
@@ -2,10 +2,10 @@ package {
import flash.utils.ByteArray;
public function sha1(input:String):String {
- var byteInput:ByteArray = staticByteArray;
+ const byteInput:ByteArray = staticByteArray;
byteInput.writeUTFBytes(input);
- var originalLength:uint = byteInput.length;
+ const originalLength:uint = byteInput.length;
// sha-1 requires a single bit be appended to the input
byteInput.writeByte(0x80);

0 comments on commit ec203c5

Please sign in to comment.