libvirt/src/util
Daniel P. Berrange aa5bd8b9b9 Add virRandom() API to generate numbers with non-power-of-2 limit
The current virRandomBits() API is only usable if the caller wants
a random number in the range [0, n-1) where n is a power of two.
This adds a virRandom() API which generates a double in the
range [0.0,1.0) with 48 bits of entropy. It then also adds a
virRandomInt(uint32_t max) API which generates an unsigned
in the range [0,@max)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-08-14 15:31:25 +01:00
..
bitmap.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
bitmap.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
buf.c maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
buf.h maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
cgroup.c build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
cgroup.h maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
command.c util: include stderr in log message when an external command fails 2012-08-07 15:25:40 -04:00
command.h add function virCommandNewVAList 2012-08-01 11:44:32 +08:00
conf.c maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
conf.h maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
dnsmasq.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
dnsmasq.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
ebtables.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
ebtables.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
event_poll.c Fix errno check, prevent spurious errors under heavy load 2012-08-08 15:50:58 -06:00
event_poll.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
event.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
event.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
hooks.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
hooks.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
hostusb.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
hostusb.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
iohelper.c virrandom: make virRandomInitialize an automatic one-shot 2012-08-06 08:15:13 -06:00
iptables.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
iptables.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
json.c json: fix interface locale dependency 2012-08-14 07:30:14 +02:00
json.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
keymaps.csv Rsync keymaps.csv file with GTK-VNC 2012-01-12 20:44:55 +00:00
logging.c Remove manual one-shot global initializers 2012-08-02 11:50:46 +01:00
logging.h Remove manual one-shot global initializers 2012-08-02 11:50:46 +01:00
memory.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
memory.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
pci.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
pci.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
processinfo.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
processinfo.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
sexpr.c Convert (nearly) all files in src/util/ to use virReportError() 2012-07-18 16:31:35 +01:00
sexpr.h build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
stats_linux.c maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
stats_linux.h maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
storage_file.c Add APIs for obtaining the unique ID of LVM & SCSI volumes 2012-08-09 16:12:01 +01:00
storage_file.h Add APIs for obtaining the unique ID of LVM & SCSI volumes 2012-08-09 16:12:01 +01:00
sysinfo.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
sysinfo.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threadpool.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threadpool.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads-pthread.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads-pthread.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads-win32.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads-win32.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
threads.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
util.c util: typos in fallback code fo virDoubleToStr 2012-08-14 12:12:38 +02:00
util.h json: fix interface locale dependency 2012-08-14 07:30:14 +02:00
uuid.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
uuid.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
viratomic.c Rewrite virAtomic APIs using GLib's atomic ops code 2012-08-02 11:50:59 +01:00
viratomic.h Rewrite virAtomic APIs using GLib's atomic ops code 2012-08-02 11:50:59 +01:00
viraudit.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
viraudit.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virauth.c fixed SegFault in virauth 2012-07-25 10:37:51 +02:00
virauth.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virauthconfig.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virauthconfig.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virdbus.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virdbus.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virfile.c Rewrite virAtomic APIs using GLib's atomic ops code 2012-08-02 11:50:59 +01:00
virfile.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virhash.c Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhash.h Implement virHashRemoveAll function 2012-04-19 10:21:43 -04:00
virhashcode.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virhashcode.h build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
virkeycode-mapgen.py Fix keymap used to talk with QEMU 2011-08-26 14:18:57 +01:00
virkeycode.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virkeycode.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virkeyfile.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virkeyfile.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virmacaddr.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virmacaddr.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdev.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdev.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevbandwidth.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevbandwidth.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevbridge.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevbridge.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevmacvlan.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevmacvlan.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevopenvswitch.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevopenvswitch.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevtap.c util: Fix typoes on return value and comments 2012-07-25 18:05:38 +08:00
virnetdevtap.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevveth.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevveth.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevvportprofile.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetdevvportprofile.h build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
virnetlink.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virnetlink.h build: fix PROBE() usage of intptr_t 2012-08-09 15:40:42 -06:00
virnodesuspend.c Remove manual one-shot global initializers 2012-08-02 11:50:46 +01:00
virnodesuspend.h Remove manual one-shot global initializers 2012-08-02 11:50:46 +01:00
virobject.c Add a generic reference counted virObject type 2012-08-07 11:47:41 +01:00
virobject.h Add a generic reference counted virObject type 2012-08-07 11:47:41 +01:00
virpidfile.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virpidfile.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virrandom.c Add virRandom() API to generate numbers with non-power-of-2 limit 2012-08-14 15:31:25 +01:00
virrandom.h Add virRandom() API to generate numbers with non-power-of-2 limit 2012-08-14 15:31:25 +01:00
virsocketaddr.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virsocketaddr.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virterror_internal.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virterror.c virterror: Add error message for unsupported operations. 2012-08-11 10:03:00 +02:00
virtime.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virtime.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virtypedparam.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
virtypedparam.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
viruri.c maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
viruri.h maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
xml.c maint: Use consistent copyright. 2012-07-27 18:27:21 +08:00
xml.h build: fix build with older libxml2 2011-12-08 11:37:24 +08:00