Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
malkusch
lock
mutex
RedisMutex
seedRandom
malkusch\lock\mutex\RedisMutex::seedRandom PHP Method
RedisMutex Class Documentation
ファイルを表示
Open project: malkusch/lock
seedRandom()
public
method
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