Skip to content

Commit c76daed

Browse files
authored
Update server.js
1 parent c875bda commit c76daed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jQuery-free/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
opts.jsonpCallback = opts.jsonpCallback || 'callback';
5757

58-
var callbackName = 'jsonp_' + Math.random().toString().split('.')[1];
58+
var callbackName = 'jsonp_' + Math.ceil((Math.random() * 1E12));
5959

6060
opts.data[opts.jsonpCallback] = callbackName;
6161

0 commit comments

Comments
 (0)