PageRenderTime 416ms queryFilters 0ms Sphinxql 283ms GetByIds 111ms meta 0ms repositoryFilters 3ms languageFilters 0ms sourceFilters 1ms

36,578 results for 'php mt_rand repo:dlorenso/dazlo' (416 ms)

Source

Language

Repository

Random.php https://bitbucket.org/arkross/venus | PHP | 138 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * <?php
14 *    include('Crypt/Random.php');
15 *
37 * @package    Crypt_Random
38 * @author     Jim Wigginton <terrafrost@php.net>
39 * @copyright  MMVII Jim Wigginton
40 * @license    http://www.gnu.org/licenses/lgpl.txt
41 * @version    $Id: Random.php,v 1.9 2010/04/24 06:40:48 terrafrost Exp $
42 * @link       http://phpseclib.sourceforge.net
83
84		/* Prior to PHP 4.2.0, mt_srand() had to be called before mt_rand() could be called.
85		   Prior to PHP 5.2.6, mt_rand()'s automatic seeding was subpar, as elaborated here:
90
91		   http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3_2/ext/standard/php_rand.h?view=markup */
92		if (version_compare(PHP_VERSION, '5.2.5', '<=')) {
drupal_web_test_case.php https://bitbucket.org/micahw156/sites_chacadwa.git | PHP | 3,806 lines
1<?php
2
294   * @param $group
295   *   The type of assertion - examples are "Browser", "PHP".
296   * @return
310   * @param $group
311   *   The type of assertion - examples are "Browser", "PHP".
312   * @return
326   * @param $group
327   *   The type of assertion - examples are "Browser", "PHP".
328   * @return
1796   *   defined by the cURL library. For a list of valid options, see
1797   *   http://www.php.net/manual/function.curl-setopt.php
1798   * @param $redirect
2634   *   format and return values see the SimpleXML documentation,
2635   *   http://us.php.net/manual/function.simplexml-element-xpath.php.
2636   */
drupal_web_test_case.php https://bitbucket.org/micahw156/sites_thegreenbag.git | PHP | 3,806 lines
1<?php
2
294   * @param $group
295   *   The type of assertion - examples are "Browser", "PHP".
296   * @return
310   * @param $group
311   *   The type of assertion - examples are "Browser", "PHP".
312   * @return
326   * @param $group
327   *   The type of assertion - examples are "Browser", "PHP".
328   * @return
1796   *   defined by the cURL library. For a list of valid options, see
1797   *   http://www.php.net/manual/function.curl-setopt.php
1798   * @param $redirect
2634   *   format and return values see the SimpleXML documentation,
2635   *   http://us.php.net/manual/function.simplexml-element-xpath.php.
2636   */
DiagnosticsControllerTest.php https://bitbucket.org/Evgenii/zf2t.git | PHP | 716 lines
1<?php
2namespace ZFToolTest\Diagnostics\Test;
27
28class DiagnosticsControllerTest extends \PHPUnit_Framework_TestCase
29{
83    {
84        $res = fopen('php://memory', 'r');
85        fclose($res);
209        static::$staticTestMethodCalled = false;
210        $expectedData = mt_rand(1,PHP_INT_MAX);
211        $expectedMessage = mt_rand(1,PHP_INT_MAX);
270        $expectedData = mt_rand(1,PHP_INT_MAX);
271        $expectedMessage = mt_rand(1,PHP_INT_MAX);
272        $this->config['diagnostics']['group']['foo'] = array(
333        $expectedData = mt_rand(1,PHP_INT_MAX);
334        $expectedMessage = mt_rand(1,PHP_INT_MAX);
335        $test = new Callback(function () use ($expectedMessage, $expectedData) {
usercp_confirm.php https://code.google.com/p/torrentpier/ | PHP | 302 lines
1<?php
2/***************************************************************************
6 *   copyright            : (C) 2001 The phpBB Group
7 *   email                : support@phpbb.com
8 *
8 *
9 *   $Id: usercp_confirm.php,v 1.1.2.2 2005/12/29 11:51:11 acydburn Exp $
10 *
21
22if ( !defined('IN_PHPBB') )
23{
39	# CAPTCHA string length
40	$length = mt_rand(7,8); # random 5 or 6
41	//$length = 8;
56	//$background_color = array(220, 230, 255);
57	$foreground_color = array(mt_rand(0,100), mt_rand(0,100), mt_rand(0,100));
58	//$background_color = array(mt_rand(200,255), mt_rand(200,255), mt_rand(200,255));
Random.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 130 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
34 * @package    Crypt_Random
35 * @author     Jim Wigginton <terrafrost@php.net>
36 * @copyright  MMVII Jim Wigginton
37 * @license    http://www.gnu.org/licenses/lgpl.txt
38 * @version    $Id: Random.php,v 1.9 2010/04/24 06:40:48 terrafrost Exp $
39 * @link       http://phpseclib.sourceforge.net
48 * Depending on how this is being used, it may be worth while to write a replacement.  For example,
49 * a PHP-based web app that stores its data in an SQL database can collect more entropy than this function
50 * can.
77
78    /* Prior to PHP 4.2.0, mt_srand() had to be called before mt_rand() could be called.
79       Prior to PHP 5.2.6, mt_rand()'s automatic seeding was subpar, as elaborated here:
84
85       http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3_2/ext/standard/php_rand.h?view=markup */
86    if (version_compare(PHP_VERSION, '5.2.5', '<=')) { 
captcha_gd_wave.php git://github.com/phpbb/phpbb3.git | PHP | 843 lines
1<?php
2/**
34		$x_grid = mt_rand(6, 10);
35		$y_grid = mt_rand(6, 10);
36
55			'upper_left'	=> array(
56				'x' => mt_rand(5, 15),
57				'y' => mt_rand(10, 15)
74		// TODO
75		$background = imagecolorallocate($img, mt_rand(155, 255), mt_rand(155, 255), mt_rand(155, 255));
76		imagefill($img, 0, 0, $background);
83		{
84			$random[$i] = imagecolorallocate($img, mt_rand(120, 255), mt_rand(120, 255), mt_rand(120, 255));
85		}
86
87		$fontcolors[0] = imagecolorallocate($img, mt_rand(0, 120), mt_rand(0, 120), mt_rand(0, 120));
88
Random.php git://github.com/fuel/core.git | PHP | 138 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * <?php
14 *    include('Crypt/Random.php');
15 *
37 * @package    Crypt_Random
38 * @author     Jim Wigginton <terrafrost@php.net>
39 * @copyright  MMVII Jim Wigginton
40 * @license    http://www.gnu.org/licenses/lgpl.txt
41 * @version    $Id: Random.php,v 1.9 2010/04/24 06:40:48 terrafrost Exp $
42 * @link       http://phpseclib.sourceforge.net
83
84		/* Prior to PHP 4.2.0, mt_srand() had to be called before mt_rand() could be called.
85		   Prior to PHP 5.2.6, mt_rand()'s automatic seeding was subpar, as elaborated here:
90
91		   http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3_2/ext/standard/php_rand.h?view=markup */
92		if (version_compare(PHP_VERSION, '5.2.5', '<=')) {
darkness.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 159 lines
1<?php
2   /** Author:       Tyler Akins
9
10require_once(SM_PATH . 'functions/strings.php');
11
37function Darkness_HeaderPlugin() {
38   global $PHP_SELF, $Darkness_Transition;
39   
39   
40   if (substr($PHP_SELF, -18) == '/src/left_main.php') {
41      echo '<meta http-equiv="Page-Enter" content="' .
63</script>
64<?PHP
65}
71   /** seed the random number generator **/
72   sq_mt_randomize();
73
darkness.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 161 lines
1<?php
2/**
11 * Load up the usual suspects.. */
12require_once(SM_PATH . 'functions/strings.php');
13
39function Darkness_HeaderPlugin() {
40   global $PHP_SELF, $Darkness_Transition;
41   
41   
42   if (substr($PHP_SELF, -18) == '/src/left_main.php') {
43      echo '<meta http-equiv="Page-Enter" content="' .
65</script>
66<?PHP
67}
73   /** seed the random number generator **/
74   sq_mt_randomize();
75
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 76 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright &copy; 2000-2006 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 10633 2006-02-03 22:27:56Z jervfors $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 53 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright 2000-2011 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 14084 2011-01-06 02:44:03Z pdontthink $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
darkness.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 159 lines
1<?php
2   /** Author:       Tyler Akins
9
10require_once('../functions/strings.php');
11
37function Darkness_HeaderPlugin() {
38   global $PHP_SELF, $Darkness_Transition;
39   
39   
40   if (substr($PHP_SELF, -18) == '/src/left_main.php') {
41      echo '<meta http-equiv="Page-Enter" content="' .
63</script>
64<?PHP
65}
71   /** seed the random number generator **/
72   sq_mt_randomize();
73
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 76 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright &copy; 2000-2007 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 12127 2007-01-13 20:07:24Z kink $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 53 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright &copy; 2000-2009 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 13548 2009-04-15 18:52:02Z jervfors $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 53 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright &copy; 2000-2007 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 12486 2007-06-27 16:28:52Z kink $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
darkness.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 159 lines
1<?php
2   /** Author:       Tyler Akins
9
10include_once('../functions/strings.php');
11
37function Darkness_HeaderPlugin() {
38   global $PHP_SELF, $Darkness_Transition;
39   
39   
40   if (substr($PHP_SELF, -18) == "/src/left_main.php") {
41      echo '<meta http-equiv="Page-Enter" content="' .
63</script>
64<?PHP
65}
71   /** seed the random number generator **/
72   sq_mt_randomize();
73
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 53 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright 2000-2010 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 13893 2010-01-25 02:47:41Z pdontthink $
18/** seed the random number generator */
19sq_mt_randomize();
20
21/** light(1) or dark(0) background toggle **/
22$bg = mt_rand(0,1);
23
31/** generate random color **/
32$rb = mt_rand($cmin_b,$cmax_b);
33$gb = mt_rand($cmin_b,$cmax_b);
monostochastic.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 55 lines
1<?php
2
3/**
4 * monostochastic.php
5 * Name:    Monostochastic
11 * @copyright 2000-2012 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id: monostochastic.php 14249 2012-01-02 02:09:17Z pdontthink $
23/** light(1) or dark(0) background toggle **/
24$bg = mt_rand(0,1);
25
33/** generate random color **/
34$rb = mt_rand($cmin_b,$cmax_b);
35$gb = mt_rand($cmin_b,$cmax_b);
35$gb = mt_rand($cmin_b,$cmax_b);
36$bb = mt_rand($cmin_b,$cmax_b);
37
darkness.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 135 lines
1<?php
2
8 * @copyright 2001-2012 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id: darkness.php 14249 2012-01-02 02:09:17Z pdontthink $
65</script>
66<?php
67}
79    // Some background colors
80    $r = mt_rand(24,64);
81    $unique = true;
96// Set the error color to some shade of red
97$r = mt_rand(196, 255);
98$g = mt_rand(144, ($r * .8));
106    /** generate random color **/
107    $r = mt_rand($cmin,$cmax);
108    $g = mt_rand($cmin,$cmax);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21