summaryrefslogtreecommitdiffstats
path: root/paste
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-05-02 19:00:25 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-05-02 19:02:28 +0200
commit1727e589f05ee351fb45a4a94cd5eeba13b5ef7c (patch)
tree6aa7b2bd8282d05991917255d4f0cda3c347f3cf /paste
parentf6c77b0848ca7e504cfba795d40b1c6c5bb8b343 (diff)
downloadrafb-nopaste-1727e589f05ee351fb45a4a94cd5eeba13b5ef7c.tar.gz
rafb-nopaste-1727e589f05ee351fb45a4a94cd5eeba13b5ef7c.tar.xz
rafb-nopaste-1727e589f05ee351fb45a4a94cd5eeba13b5ef7c.zip
fixed bug on x86 systems
intval depends on arch (time and long random did not find space in a 32bit-int) because bcmod requires a string it was wrong anyway
Diffstat (limited to 'paste')
-rw-r--r--paste/include/generator/ShortGenerator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/include/generator/ShortGenerator.php b/paste/include/generator/ShortGenerator.php
index 320ff10..fc6c1ad 100644
--- a/paste/include/generator/ShortGenerator.php
+++ b/paste/include/generator/ShortGenerator.php
@@ -51,7 +51,7 @@ class ShortGenerator extends IdGeneratorEngine
$converted = '';
// id source (time + random)
- $n = intval(time() . rand(1000, getrandmax()));
+ $n = time() . rand(1000, getrandmax());
while ($n > 0) {
$converted = substr(self::codeset, bcmod($n, $base), 1) . $converted;