summaryrefslogtreecommitdiff
path: root/core/helpers/movie.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-26 23:38:17 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-26 23:38:17 +0000
commitd097b4fc027ff558bf5f580298c7bed3696dcd3d (patch)
treeaf67745f12cdb7ebeeff9b615fbf8ec3f5cd6881 /core/helpers/movie.php
parent960c4248deb43eb824dda14670ea1f759a709013 (diff)
Update to image_block based on bharat's feedback
1) move the rand_key column into core 2) don't do a max rand, just try to a get a random number less than the current random number if that doesn't successd look the other way
Diffstat (limited to 'core/helpers/movie.php')
-rw-r--r--core/helpers/movie.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/helpers/movie.php b/core/helpers/movie.php
index 22a1c62d..b964e383 100644
--- a/core/helpers/movie.php
+++ b/core/helpers/movie.php
@@ -63,6 +63,7 @@ class movie_Core {
$movie->mime_type = strtolower($pi["extension"]) == "mp4" ? "video/mp4" : "video/x-flv";
$movie->thumb_dirty = 1;
$movie->resize_dirty = 1;
+ $movie->rand_key = ((float)mt_rand()) / (float)mt_getrandmax();
// Randomize the name if there's a conflict
while (ORM::Factory("item")