lib/smshelper/api/webtext.rb in smshelper-0.2.4 vs lib/smshelper/api/webtext.rb in smshelper-0.2.5
- old
+ new
@@ -10,10 +10,10 @@
add_query_options! :api_id => config.webtext[:uname], :api_pwd => config.webtext[:passwd]
super
end
def send_message(message)
- uuid = @uuid.generate
+ uuid = (Digest::CRC32.hexdigest @uuid.generate).unpack('U*').collect {|x| sprintf '%02X', x}.join
if message.utf_8
message.to_hex_be
q = {:unicode => '1', :hex => message.text}
else