# mt_rand deprecated in trunk?

- Thread: https://externals.io/message/49865
- Original archive: https://news-web.php.net/php.internals/49865
- Started by Michael Maclean on 2010-10-04T19:42:55+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #49865 — Michael Maclean — 2010-10-04T19:42:55+00:00

URL: https://externals.io/message/49865#49865

Hi,
The comment on this commit:
http://svn.php.net/viewvc?view=revision&revision=303912
suggest `getrandmax()` and `mt_getrandmax()` were to be deprecated, but it 
seems Kalle might have typoed and deprecated `mt_rand()` instead - is that 
the case?

-- 
Cheers,
Michael

---

## #49873 — Richard Quadling — 2010-10-05T11:08:03+00:00

URL: https://externals.io/message/49865#49873 · In reply to: #49865

> Hi,
> The comment on this commit:
> http://svn.php.net/viewvc?view=revision&revision=303912
> suggest `getrandmax()` and `mt_getrandmax()` were to be deprecated, but it seems
> Kalle might have typoed and deprecated `mt_rand()` instead - is that the case?
>
> --
> Cheers,
> Michael
>
> --
> 
> 
>
>

Yep. Looks like it ...

http://svn.php.net/viewvc/php/php-src/trunk/ext/standard/basic_functions.c?r1=303912&r2=303911&pathrev=303912&view=patch


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
