vlc.git
10 years agolegacy OS X intf: removed unfinished VLM interface
Felix Paul Kühne [Sun, 14 Mar 2010 23:16:30 +0000 (00:16 +0100)]
legacy OS X intf: removed unfinished VLM interface

The existing code only managed to display some windows without any functionality.

10 years agolegacy OS X intf: fixed check-for-update and fullscreen-toggle menu items
Felix Paul Kühne [Sun, 14 Mar 2010 23:06:49 +0000 (00:06 +0100)]
legacy OS X intf: fixed check-for-update and fullscreen-toggle menu items

10 years agolegacy OSX intf: correctly adapt vout window's size to video content
Felix Paul Kühne [Sat, 13 Mar 2010 20:26:33 +0000 (21:26 +0100)]
legacy OSX intf: correctly adapt vout window's size to video content

10 years agolegacy OS X intf: restored 1.0 look of the video output window
Felix Paul Kühne [Sat, 13 Mar 2010 20:18:36 +0000 (21:18 +0100)]
legacy OS X intf: restored 1.0 look of the video output window

10 years agoopengl: make sure we use this module instead of the caca vout as default within the...
Felix Paul Kühne [Sat, 13 Mar 2010 20:00:18 +0000 (21:00 +0100)]
opengl: make sure we use this module instead of the caca vout as default within the legacy VLC.app

10 years agolegacy macosx intf: make sure we display the right playback button graphic when drawi...
Felix Paul Kühne [Sat, 13 Mar 2010 19:46:04 +0000 (20:46 +0100)]
legacy macosx intf: make sure we display the right playback button graphic when drawing the video window

10 years agoUpdated list
Felix Paul Kühne [Sat, 13 Mar 2010 18:42:01 +0000 (19:42 +0100)]
Updated list

10 years agoUpdated Swedish translation by Daniel Nylander
Felix Paul Kühne [Sat, 13 Mar 2010 18:41:31 +0000 (19:41 +0100)]
Updated Swedish translation by Daniel Nylander

10 years agoPrint exact revision in addition to version number on console
Rémi Denis-Courmont [Sat, 13 Mar 2010 17:32:20 +0000 (19:32 +0200)]
Print exact revision in addition to version number on console

10 years agoPut only the copyright statement in COPYRIGHT_MESSAGE
Rémi Denis-Courmont [Sat, 13 Mar 2010 17:31:04 +0000 (19:31 +0200)]
Put only the copyright statement in COPYRIGHT_MESSAGE

10 years agoDo not put copyright statement where it does not belong
Rémi Denis-Courmont [Sat, 13 Mar 2010 17:28:53 +0000 (19:28 +0200)]
Do not put copyright statement where it does not belong

 * plugin cache identifier string,
 * HTTP user agent header,
 * configuration file head comment,
 * CGI server software name.

10 years agoFix a warning
Rémi Denis-Courmont [Sat, 13 Mar 2010 16:21:16 +0000 (18:21 +0200)]
Fix a warning

10 years agoRename linked_with_a_crap_library_which_uses_atexit()
Rémi Denis-Courmont [Sat, 13 Mar 2010 16:18:00 +0000 (18:18 +0200)]
Rename linked_with_a_crap_library_which_uses_atexit()

In several cases, it is not used because of atexit().

10 years agoRevert "PulseAudio cannot be unloaded - fixes #2538"
Rémi Denis-Courmont [Sat, 13 Mar 2010 16:17:07 +0000 (18:17 +0200)]
Revert "PulseAudio cannot be unloaded - fixes #2538"

This reverts commit 8b40fb0f0bfb71913fe5dd22402ecfa479d80b6d.
Reading the PulseAudio source code, #2538 seems wrong.

Conflicts:

bindings/python

10 years agoinput_item: remove b_prefers_tree
Jakob Leben [Sat, 13 Mar 2010 16:06:01 +0000 (17:06 +0100)]
input_item: remove b_prefers_tree

Nothing uses it and it is irrelevant after tree form and list form
playlist representations were joined.

10 years agoadjustments to playlist API changes
Jakob Leben [Fri, 12 Mar 2010 08:27:31 +0000 (09:27 +0100)]
adjustments to playlist API changes

10 years agoplaylist: new playlist_NodeAddCopy(), modified playlist_NodeCreate()
Jakob Leben [Thu, 11 Mar 2010 18:26:53 +0000 (19:26 +0100)]
playlist: new playlist_NodeAddCopy(), modified playlist_NodeCreate()

- New function to copy a playlist item and all its children.
- Allow node creation at any position in parent.

10 years agoinput_item: new input_item_Copy()
Jakob Leben [Thu, 11 Mar 2010 18:20:20 +0000 (19:20 +0100)]
input_item: new input_item_Copy()

10 years agoQt: menus, force ViewMenu to run at menuBar creation.
Jean-Baptiste Kempf [Sat, 13 Mar 2010 15:06:09 +0000 (16:06 +0100)]
Qt: menus, force ViewMenu to run at menuBar creation.

Fixes #3406

10 years agoRTP output: fix SRTP error path
Rémi Denis-Courmont [Sat, 13 Mar 2010 15:13:30 +0000 (17:13 +0200)]
RTP output: fix SRTP error path

10 years agoRTP output: E/S needs not be a VLC object
Rémi Denis-Courmont [Sat, 13 Mar 2010 15:13:11 +0000 (17:13 +0200)]
RTP output: E/S needs not be a VLC object

10 years agoRTP output: avoid vlc_thread_create()
Rémi Denis-Courmont [Sat, 13 Mar 2010 15:12:15 +0000 (17:12 +0200)]
RTP output: avoid vlc_thread_create()

This triggers a race condition and ultimately a crash when the input
kills all its children.

10 years agoQt: menus, simplification
Jean-Baptiste Kempf [Sat, 13 Mar 2010 12:05:50 +0000 (13:05 +0100)]
Qt: menus, simplification

Ref #3406

10 years agoTLS: attach before inheriting variables
Rémi Denis-Courmont [Sat, 13 Mar 2010 12:51:17 +0000 (14:51 +0200)]
TLS: attach before inheriting variables

10 years agoFix "play only" hotkey when playlist is stopped (i.e. no input)
Rémi Denis-Courmont [Sat, 13 Mar 2010 12:36:26 +0000 (14:36 +0200)]
Fix "play only" hotkey when playlist is stopped (i.e. no input)

This fixes #3377.

10 years agoQt: put Win32 Main Interface function in its own file.
Jean-Baptiste Kempf [Fri, 12 Mar 2010 22:03:30 +0000 (23:03 +0100)]
Qt: put Win32 Main Interface function in its own file.

10 years agoQt: Fix simple preferences according to new ui modes
Francois Cartegnie [Fri, 12 Mar 2010 13:11:26 +0000 (14:11 +0100)]
Qt: Fix simple preferences according to new ui modes

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years agoLua SD: check if p_input exists before using it
Fabio Ritrovato [Thu, 11 Mar 2010 17:45:36 +0000 (18:45 +0100)]
Lua SD: check if p_input exists before using it

10 years agoLua: fix typo on previous commit
Fabio Ritrovato [Thu, 11 Mar 2010 17:04:22 +0000 (18:04 +0100)]
Lua: fix typo on previous commit

10 years agoTypos
Fabio Ritrovato [Thu, 11 Mar 2010 16:40:28 +0000 (17:40 +0100)]
Typos

10 years agoLua: don't use empty strings for metas (close #3403)
Fabio Ritrovato [Thu, 11 Mar 2010 16:26:53 +0000 (17:26 +0100)]
Lua: don't use empty strings for metas (close #3403)

10 years agoPodcast: trim whitespaces from url
Fabio Ritrovato [Thu, 11 Mar 2010 15:42:35 +0000 (16:42 +0100)]
Podcast: trim whitespaces from url

10 years agoi18n: QT4: added 2 missing calls to qtr() in toolbar.cpp
gozer@progrock.com [Thu, 11 Mar 2010 13:00:14 +0000 (05:00 -0800)]
i18n: QT4: added 2 missing calls to qtr() in toolbar.cpp

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 years agoC++ #include fix
Rémi Denis-Courmont [Thu, 11 Mar 2010 15:29:40 +0000 (17:29 +0200)]
C++ #include fix

10 years agoLua SD: don't open the playlist lib
Fabio Ritrovato [Thu, 11 Mar 2010 14:57:28 +0000 (15:57 +0100)]
Lua SD: don't open the playlist lib

10 years agoRemove debug
Jean-Baptiste Kempf [Thu, 11 Mar 2010 14:49:08 +0000 (15:49 +0100)]
Remove debug

10 years agoQt: Fixing main Interface, phase 1.
Jean-Baptiste Kempf [Sat, 6 Mar 2010 16:22:02 +0000 (17:22 +0100)]
Qt: Fixing main Interface, phase 1.

Removes a lot of hacks, especially around manipulating size (no more sizeHint(), very limited use of doComponentsUpdate and updateGeometry() ),
Simplify the number of starting options of the interface
Fixes crashes due to QStackWidget limitations
Still a lot of debug around, but mostly commented out, that will go in future commits
Close #3401
Close #3210
Close #3332
Close #1717

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years agoQt: Force firstRun Ok button to be focused.
Jean-Baptiste Kempf [Wed, 10 Mar 2010 22:57:50 +0000 (23:57 +0100)]
Qt: Force firstRun Ok button to be focused.

10 years agoskins2: fix corner case with old skins and fullscreen
Erwan Tulou [Thu, 11 Mar 2010 08:20:58 +0000 (09:20 +0100)]
skins2: fix corner case with old skins and fullscreen

For skins without video elements, fullscreen mode could be launched with the inner video kept hidden. Initializing the video control to NULL fixes it.

10 years agoUpdate: remove printf.
Rémi Duraffort [Wed, 10 Mar 2010 21:51:30 +0000 (22:51 +0100)]
Update: remove printf.

10 years agotypo
Rémi Denis-Courmont [Wed, 10 Mar 2010 18:07:35 +0000 (20:07 +0200)]
typo

10 years agoWin32: don't rebase UAC.dll
Eric Lassauge [Wed, 10 Mar 2010 17:32:34 +0000 (18:32 +0100)]
Win32: don't rebase UAC.dll

Signed-off-by: Geoffroy Couprie <geal@videolan.org>
10 years agoQt: use Qt::DropAction properly throughout playlist drag-and-drop
Jakob Leben [Wed, 10 Mar 2010 17:31:24 +0000 (18:31 +0100)]
Qt: use Qt::DropAction properly throughout playlist drag-and-drop

10 years agoskins2: improve list of skins
Erwan Tulou [Tue, 9 Mar 2010 17:57:41 +0000 (18:57 +0100)]
skins2: improve list of skins

- make it case insensitive and sorted alphabetically
- fix a few regressions about config_Get vs. var_Inherit

10 years agoskins2: fix skins broken because of wrong path separator
Erwan Tulou [Wed, 10 Mar 2010 15:20:25 +0000 (16:20 +0100)]
skins2: fix skins broken because of wrong path separator

In skins, slash is the preferred path separator for both Linux and Win32
yet, rather fix those separators and issue a warning than fail to open skins.

10 years agoQt: use "no art" picture for drag-and-drop pixmap in all playlist views
Jakob Leben [Wed, 10 Mar 2010 10:47:06 +0000 (11:47 +0100)]
Qt: use "no art" picture for drag-and-drop pixmap in all playlist views

This makes drag-and-drop easier, because drag-and-drop pixmap does not
cover the area under mouse cursor.

10 years agoConstify (fixes #1391)
Rémi Denis-Courmont [Tue, 9 Mar 2010 21:48:58 +0000 (23:48 +0200)]
Constify (fixes #1391)

10 years agoRemove useless casts
Rémi Denis-Courmont [Tue, 9 Mar 2010 21:48:46 +0000 (23:48 +0200)]
Remove useless casts

10 years agoFileToUrl: constify
Rémi Denis-Courmont [Tue, 9 Mar 2010 21:41:47 +0000 (23:41 +0200)]
FileToUrl: constify

10 years agoFileToUrl does not need to be extern
Rémi Denis-Courmont [Tue, 9 Mar 2010 21:33:02 +0000 (23:33 +0200)]
FileToUrl does not need to be extern

10 years agoQt: drag-and-drop: simplification and robustness
Jakob Leben [Tue, 9 Mar 2010 16:49:41 +0000 (17:49 +0100)]
Qt: drag-and-drop: simplification and robustness

- Make PlMimeData simply a subclass of QMimeData: destructor of indirect
subclasses of QObject is called even if their direct base class' destructor
is not virtual.
- Protection against using input_item_t* from another VLC instance:
qobject_cast<PlMimeData*>() will fail on QMimeData dropped from another process.
- Some refactoring of PLModel::dropMove() for robustness.

10 years agoFix typo
Fabio Ritrovato [Tue, 9 Mar 2010 16:19:49 +0000 (17:19 +0100)]
Fix typo

10 years agoQt: use qt QStyle to center dialogs on screen
Jean-Baptiste Kempf [Tue, 9 Mar 2010 11:39:40 +0000 (12:39 +0100)]
Qt: use qt QStyle to center dialogs on screen

10 years agoQt: missing includes
Jean-Baptiste Kempf [Tue, 9 Mar 2010 11:39:08 +0000 (12:39 +0100)]
Qt: missing includes

10 years agoQt: bgWidget, add the margin to trigger the hide of the label when resizing
Jean-Baptiste Kempf [Thu, 4 Mar 2010 23:44:13 +0000 (00:44 +0100)]
Qt: bgWidget, add the margin to trigger the hide of the label when resizing

10 years agoMTP: update to libmtp 1.0.0 + fixes
Fabio Ritrovato [Mon, 8 Mar 2010 22:29:12 +0000 (23:29 +0100)]
MTP: update to libmtp 1.0.0 + fixes

10 years agoCompile fix
Rémi Denis-Courmont [Mon, 8 Mar 2010 21:20:56 +0000 (23:20 +0200)]
Compile fix

10 years agoFix Doxygen errors
Rémi Denis-Courmont [Mon, 8 Mar 2010 20:31:37 +0000 (22:31 +0200)]
Fix Doxygen errors

10 years agoDo not apply playlist path to full URIs
Rémi Denis-Courmont [Mon, 8 Mar 2010 19:45:04 +0000 (21:45 +0200)]
Do not apply playlist path to full URIs

10 years ago.desktop Spanish translation
Ricardo Pérez López [Mon, 8 Mar 2010 19:27:41 +0000 (21:27 +0200)]
.desktop Spanish translation

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 years agoCosmetic
Rémi Denis-Courmont [Mon, 8 Mar 2010 19:26:27 +0000 (21:26 +0200)]
Cosmetic

10 years agomsw: add support for --[no]-mouse-events and --[no]-keyboard-events
Erwan Tulou [Sun, 28 Feb 2010 16:25:47 +0000 (17:25 +0100)]
msw: add support for --[no]-mouse-events and --[no]-keyboard-events

10 years agoQt: use input_item_t* for drag-and-drop data
Jakob Leben [Mon, 8 Mar 2010 18:16:59 +0000 (19:16 +0100)]
Qt: use input_item_t* for drag-and-drop data

A helper object keeps reference count until drag-and-drop is finished.

10 years agoQt4: disable implicit cast from QString to (const) char *
Rémi Denis-Courmont [Mon, 8 Mar 2010 17:59:22 +0000 (19:59 +0200)]
Qt4: disable implicit cast from QString to (const) char *

This enforces the use of qtu() or whatever appropriate.

10 years agoQt4: fix x11_display double free and leaks
Rémi Denis-Courmont [Mon, 8 Mar 2010 17:50:54 +0000 (19:50 +0200)]
Qt4: fix x11_display double free and leaks

10 years agoFix make distcheck
Rémi Duraffort [Mon, 8 Mar 2010 12:57:44 +0000 (13:57 +0100)]
Fix make distcheck

10 years agoWin32: UAC.dll must be packaged while doing package-win32-base-exe
Geoffroy Couprie [Mon, 8 Mar 2010 12:12:57 +0000 (13:12 +0100)]
Win32: UAC.dll must be packaged while doing package-win32-base-exe

10 years agoQt4: fix the "Show Containing folder" feature.
Rémi Duraffort [Mon, 8 Mar 2010 12:09:06 +0000 (13:09 +0100)]
Qt4: fix the "Show Containing folder" feature.

10 years agoQt: Playlist drag and drop corrections
Jakob Leben [Mon, 8 Mar 2010 10:56:45 +0000 (11:56 +0100)]
Qt: Playlist drag and drop corrections

- Use item ids instead of pointers for drag data to prevent usage after freeing.
- The list of selected items that contitutes drag data is sorted correctly according to item position in tree. This keeps their relative order after drop operation even if they originated from different parent nodes.
- If a parent and any of it's children are selected, only the parent enters drag'n'drop operation. Children are thus not moved out of the parent when dropping.
- Copying by drag and drop performs a recursive copy of all children.

10 years agoQt: don't emit redundant InputManager::statusChanged() signals
Jakob Leben [Mon, 8 Mar 2010 09:47:49 +0000 (10:47 +0100)]
Qt: don't emit redundant InputManager::statusChanged() signals

Thanks to Srikanth Raju <srikiraju@gmail.com> for pointing out the problem.

10 years agoWin32: don't forget to remove the plugins cache at uninstall
Geoffroy Couprie [Mon, 8 Mar 2010 00:02:54 +0000 (01:02 +0100)]
Win32: don't forget to remove the plugins cache at uninstall

10 years agoWin32: don't remove inexistant directory while uninstalling
Geoffroy Couprie [Sun, 7 Mar 2010 20:04:43 +0000 (21:04 +0100)]
Win32: don't remove inexistant directory while uninstalling

10 years agoSymplify configure.ac regarding OpenCV and rename the example file from C++ to C...
Rémi Duraffort [Sun, 7 Mar 2010 21:29:23 +0000 (22:29 +0100)]
Symplify configure.ac regarding OpenCV and rename the example file from C++ to C (that's a C file).

10 years agoProjectm: missing attach.
Rémi Duraffort [Sun, 7 Mar 2010 20:57:48 +0000 (21:57 +0100)]
Projectm: missing attach.

10 years agoOpenCV: more cosmetics.
Rémi Duraffort [Sun, 7 Mar 2010 19:43:22 +0000 (20:43 +0100)]
OpenCV: more cosmetics.

10 years agoOpenCV: cosmetics.
Rémi Duraffort [Sun, 7 Mar 2010 19:40:20 +0000 (20:40 +0100)]
OpenCV: cosmetics.

10 years agoOpenCV: include config.h first
Rémi Duraffort [Sun, 7 Mar 2010 19:36:06 +0000 (20:36 +0100)]
OpenCV: include config.h first

10 years agoWin32: fix the path to the plugins cache
Geoffroy Couprie [Sun, 7 Mar 2010 19:32:54 +0000 (20:32 +0100)]
Win32: fix the path to the plugins cache

10 years agoRTMP: totally broken, disabled for the time being
Rémi Denis-Courmont [Sun, 7 Mar 2010 19:26:56 +0000 (21:26 +0200)]
RTMP: totally broken, disabled for the time being

10 years agoCosmetic fix
Rémi Denis-Courmont [Sun, 7 Mar 2010 19:21:29 +0000 (21:21 +0200)]
Cosmetic fix

10 years agoFix #include <SDL/SDL.h> to be #include <SDL.h>
Nathan Phillip Brink [Sat, 6 Mar 2010 00:58:52 +0000 (19:58 -0500)]
Fix #include <SDL/SDL.h> to be #include <SDL.h>

...as the FAQ on http://libsdl.org/ declares this is the most portable
method.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
10 years agoMSN: fix assertion (fixes #2930)
Rémi Denis-Courmont [Sun, 7 Mar 2010 18:29:20 +0000 (20:29 +0200)]
MSN: fix assertion (fixes #2930)

10 years agoQt4: bookmarks: don't give an anonymous temporary object to qtu
Rémi Denis-Courmont [Sun, 7 Mar 2010 15:39:50 +0000 (17:39 +0200)]
Qt4: bookmarks: don't give an anonymous temporary object to qtu

There may be similar bugs in other places

10 years agoudev sd: fix udev based disc finding
Ilkka Ollakka [Sun, 7 Mar 2010 15:28:39 +0000 (17:28 +0200)]
udev sd: fix udev based disc finding

Only blank discs seem to give ID_CDROM_MEDIA_STATE=blank normal audio-cds just
dont have that property at all. And instead defaulting to file, default to
invalid and return NULL if we don't find any property to tell use that optical
disc is something we are able to play currently.

Fixes udev discs sd for me, tested with empty dvd-r discs and audio cds.

10 years agoLUA: (really) fix infinite loop
Rémi Denis-Courmont [Sun, 7 Mar 2010 15:02:44 +0000 (17:02 +0200)]
LUA: (really) fix infinite loop

10 years agoPartially fix encoding of relative paths in playlist files
Rémi Denis-Courmont [Sun, 7 Mar 2010 10:33:07 +0000 (12:33 +0200)]
Partially fix encoding of relative paths in playlist files

10 years agol10n: Chinese update
Dean Lee [Sun, 7 Mar 2010 00:12:00 +0000 (00:12 +0000)]
l10n: Chinese update

Signed-off-by: Christophe Mutricy <xtophe@videolan.org>
10 years agoWin32: allow negative values for window coordinates (fixes #3389)
Rémi Denis-Courmont [Sat, 6 Mar 2010 20:37:28 +0000 (22:37 +0200)]
Win32: allow negative values for window coordinates (fixes #3389)

10 years agovideo-x, video-y: make zero the default
Rémi Denis-Courmont [Sat, 6 Mar 2010 20:35:01 +0000 (22:35 +0200)]
video-x, video-y: make zero the default

-1 is a legal coordinate for a window (both in X11 and Win32).

10 years agovlc-cache-gen: add --force option
Rémi Denis-Courmont [Sat, 6 Mar 2010 17:16:46 +0000 (19:16 +0200)]
vlc-cache-gen: add --force option

10 years agoWin32: use video-x and video-y (fixes #3215)
Rémi Denis-Courmont [Sat, 6 Mar 2010 16:48:43 +0000 (18:48 +0200)]
Win32: use video-x and video-y (fixes #3215)

10 years agoXCB/window: pass requested position to the X server
Rémi Denis-Courmont [Sat, 6 Mar 2010 16:38:25 +0000 (18:38 +0200)]
XCB/window: pass requested position to the X server

10 years agoXCB: set window provider requested position from video-x and video-y
Rémi Denis-Courmont [Sat, 6 Mar 2010 16:36:21 +0000 (18:36 +0200)]
XCB: set window provider requested position from video-x and video-y

Note that only the Qt4 provider seem to use the values this far. Also,
most window managers will move the window wherever they see fit anyway.

10 years agoRevert "Qt4: --embedded-video must be checked on the window object (not the UI)"
Rémi Denis-Courmont [Sat, 6 Mar 2010 16:29:06 +0000 (18:29 +0200)]
Revert "Qt4: --embedded-video must be checked on the window object (not the UI)"

This reverts commit 4c40aec495ef7062523e092c8ef5d9bfffde063a.

We already check is_standalone.

10 years agoplaylist: fix crash when p_playlist->current.i_size == 0 and random is on
Ilkka Ollakka [Sat, 6 Mar 2010 15:17:29 +0000 (17:17 +0200)]
playlist: fix crash  when p_playlist->current.i_size == 0  and random is on

10 years agoskins2: replace most config_Get with var_Inherit
Erwan Tulou [Sat, 6 Mar 2010 13:28:07 +0000 (14:28 +0100)]
skins2: replace most config_Get with var_Inherit

10 years agoUse vlc_mrand48() instead of rand()
Rémi Denis-Courmont [Sat, 6 Mar 2010 10:29:29 +0000 (12:29 +0200)]
Use vlc_mrand48() instead of rand()

10 years agoThread-safe random numbers for session IDs
Rémi Denis-Courmont [Sat, 6 Mar 2010 10:21:02 +0000 (12:21 +0200)]
Thread-safe random numbers for session IDs

10 years agoplaylist: randomize in a thread-safe manner
Rémi Denis-Courmont [Sat, 6 Mar 2010 10:20:41 +0000 (12:20 +0200)]
playlist: randomize in a thread-safe manner

10 years agovlc_(d|l|m)rand48: thread-safe wrappers for non-secure/fast PRNG
Rémi Denis-Courmont [Sat, 6 Mar 2010 10:04:51 +0000 (12:04 +0200)]
vlc_(d|l|m)rand48: thread-safe wrappers for non-secure/fast PRNG

These functions are just convenience so we don't need to seed the
PRNG all the time, nor to use vlc_rand_bytes() for non-security-critical
randomness.