Skip to content

Commit b16520e

Browse files
author
Helperhaps
committed
fix rand function max value
1 parent 904a282 commit b16520e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[![Build Status](https://travis-ci.org/jpush/jpush-api-php-client.svg?branch=master)](https://travis-ci.org/jpush/jpush-api-php-client)
2-
31
# JPush API client library for PHP
42

53
> **此分支已不再维护,如果你的 PHP 版本大于 5.3.3 请使用 Master 分支的代码,或通过 Composer 下载安装 v3.5.0 以上版本。**

src/JPush/core/PushPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ private function __processResp($response) {
579579
}
580580
}
581581
private function generateSendno() {
582-
return rand(100000, 4294967294);
582+
return rand(100000, getrandmax());
583583
}
584584

585-
}
585+
}

0 commit comments

Comments
 (0)