Skip to content

Commit a958884

Browse files
ScheissyProgi1984
authored andcommitted
Raised max value for identifier rand call
1 parent fa6fc54 commit a958884

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/changes/1.1.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
- Added support for PHP 8.2 & 8.3 - [@Progi1984](https://github.com/Progi1984) in [#769](https://github.com/PHPOffice/PHPPresentation/pull/769)
1313
- PowerPoint 2007 Writer : Added support to Font for Axis tick label & chinese font support - [@zhengwhizz](https://github.com/zhengwhizz) in [#774](https://github.com/PHPOffice/PHPPresentation/pull/774)
1414

15+
## Improvements
16+
- Slide : Raised max value for identifier rand call - [@Scheissy](https://github.com/Scheissy) in [#777](https://github.com/PHPOffice/PHPPresentation/pull/777)
17+
1518
## Bugfixes
1619

1720
- Fixed CI - [@Progi1984](https://github.com/Progi1984) in [#766](https://github.com/PHPOffice/PHPPresentation/pull/766)

src/PhpPresentation/Slide.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct(?PhpPresentation $pParent = null)
7777
// Shape collection
7878
$this->shapeCollection = new ArrayObject();
7979
// Set identifier
80-
$this->identifier = md5(mt_rand(0, 9999) . time());
80+
$this->identifier = md5(mt_rand(0, mt_getrandmax()) . time());
8181
// Set Slide Layout
8282
if ($this->parent instanceof PhpPresentation) {
8383
$arrayMasterSlides = $this->parent->getAllMasterSlides();

0 commit comments

Comments
 (0)