Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
malkusch
lock
mutex
RedisMutex
seedRandom
malkusch\lock\mutex\RedisMutex::seedRandom PHP 메소드
RedisMutex 1 문서
파일 보기
프로젝트 열기: malkusch/lock
seedRandom()
공개
메소드
Normally you don't need to seed, as this happens automatically. But if you experience a {@link LockReleaseException} this might come from identically created random tokens. In this case you could seed from /dev/urandom.
public
seedRandom
(
integer
|
null
$seed
= null )
$seed
integer
|
null
The optional seed.
public function seedRandom($seed = null) { is_null($seed) ? srand() : srand($seed); }
RedisMutex
__construct
acquire
add
evalScript
getRedisIdentifier
isMajority
release
seedRandom
setLogger