mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:14:20 +01:00
Add seeding of random number - randomizing going away soon, but....
This commit is contained in:
parent
7791256228
commit
ee62c1c62d
@ -91,6 +91,7 @@
|
|||||||
|
|
||||||
if (! $error) {
|
if (! $error) {
|
||||||
// Create the 'Default' group
|
// Create the 'Default' group
|
||||||
|
mt_srand((double)microtime()*1000000);
|
||||||
$defaultgroupid = mt_rand (100, 65535);
|
$defaultgroupid = mt_rand (100, 65535);
|
||||||
|
|
||||||
$acct = CreateObject('phpgwapi.accounts',$defaultgroupid);
|
$acct = CreateObject('phpgwapi.accounts',$defaultgroupid);
|
||||||
@ -107,6 +108,7 @@
|
|||||||
if(!$id_exist) {
|
if(!$id_exist) {
|
||||||
$acct->create('g','Default',$passwd,'Default','Group','A',$defaultgroupid);
|
$acct->create('g','Default',$passwd,'Default','Group','A',$defaultgroupid);
|
||||||
} else {
|
} else {
|
||||||
|
// Delete first, so ldap does not return an error, then recreate
|
||||||
$acct->delete($defaultgroupid);
|
$acct->delete($defaultgroupid);
|
||||||
$acct->create('g','Default',$passwd,'Default','Group','A',$defaultgroupid);
|
$acct->create('g','Default',$passwd,'Default','Group','A',$defaultgroupid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user