Skip to content

Commit 663fa0e

Browse files
author
Helperhaps
committed
fix rand function max value
1 parent a6a91af commit 663fa0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JPush/PushPayload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function validate() {
351351
}
352352

353353
private function generateSendno() {
354-
return rand(100000, 4294967294);
354+
return rand(100000, getrandmax());
355355
}
356356

357357
# new methods

0 commit comments

Comments
 (0)