summaryrefslogtreecommitdiff
path: root/tool/checksum.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/checksum.rb')
-rwxr-xr-xtool/checksum.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/tool/checksum.rb b/tool/checksum.rb
index bcc60ee14a..8f2d1d97d0 100755
--- a/tool/checksum.rb
+++ b/tool/checksum.rb
@@ -36,9 +36,7 @@ class Checksum
end
def update!
- open(@checksum, "wb") {|f|
- f.puts("src=\"#{@source}\", len=#{@len}, checksum=#{@sum}")
- }
+ File.binwrite(@checksum, "src=\"#{@source}\", len=#{@len}, checksum=#{@sum}")
end
def update