plymouth/src/libply
emperor06 f9f90fc3de ply-utils: Ensure random ints are big enough
Using Math.Random() in a theme script practically always returns zero.
This is because ply_get_random_number uses mrand48 which, while
returning a 64-bit long, restricts the range of its return value
to be no more than 32-bit, and so gets improperly normalized.

This commit addresses the problem by calling mrand48() twice, once for
each 32-bits of the returned value.

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/256
2024-06-04 11:05:05 -04:00
..
meson.build libply: Add -lm too 2022-11-15 16:18:23 -05:00
ply-array.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-array.h ply-array: Add ply_array_contains_uint32_element function 2019-01-16 09:43:00 +01:00
ply-bitarray.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-bitarray.h Reindent 2014-05-20 15:16:48 -04:00
ply-buffer.c ply-buffer: Make ply_buffer_clear fast if called multiple times in a row 2023-12-10 22:13:58 -05:00
ply-buffer.h ply-buffer: Fix unused-value warning 2024-03-07 15:14:34 -05:00
ply-command-parser.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-command-parser.h Reindent 2014-05-20 15:16:48 -04:00
ply-event-loop.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-event-loop.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-hashtable.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-hashtable.h Reindent 2014-05-20 15:16:48 -04:00
ply-i18n.h i18n: Fix translations not working after meson conversion 2023-08-15 12:33:11 +02:00
ply-key-file.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-key-file.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-list.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-list.h list: Add helper macro for iterating lists 2022-11-29 09:22:06 -05:00
ply-logger.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-logger.h logger: snprintf needs #include <stdio.h> 2023-03-22 13:49:25 +02:00
ply-progress.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-progress.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-rectangle.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-rectangle.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-region.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-region.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-terminal-session.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-terminal-session.h src: Drop vim: lines 2022-08-03 15:10:20 -04:00
ply-trigger.c Include config.h automatically 2023-12-04 14:04:01 -05:00
ply-trigger.h trigger: Provide way for instance handlers to preempt run. 2022-11-29 13:33:44 -05:00
ply-utils.c ply-utils: Ensure random ints are big enough 2024-06-04 11:05:05 -04:00
ply-utils.h utils: Rework UTF-8 handling 2023-12-10 22:13:58 -05:00