Skip to content

Commit

Permalink
make some extra vars constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mherkender committed Apr 2, 2012
1 parent 0afe394 commit ec203c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sha1.as
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec203c5

Please sign in to comment.