Skip to content

Commit fb70b27

Browse files
committed
fixing nonce issue to be compatible with other libraries
1 parent 5f30386 commit fb70b27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rest/rest_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def build_payload(url, params = {}, nonce)
8989
end
9090

9191
def new_nonce
92-
(Time.now.to_f * 1000).floor.to_s
92+
(Time.now.to_f * 1000000).floor.to_s
9393
end
9494

9595
def sign(payload)

lib/ws/ws2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def auth! (calc = 0, dms = 0)
645645
end
646646

647647
def new_nonce # :nodoc:
648-
(Time.now.to_f * 1000).floor.to_s
648+
(Time.now.to_f * 1000000).floor.to_s
649649
end
650650

651651
def sign (payload) # :nodoc:

0 commit comments

Comments
 (0)