random: always use the PRNG, and use entropy sources to feed it
remove the yarrow module. the hardware modules can push entropy with queue_randomness(). virtio_rng will now push entropy every 300 seconds. helps with #14937 Change-Id: If76c5deabf61dc616a0e051332f44b89deb6b8a1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5824 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
0843085384
commit
34e9243872
@@ -14,18 +14,12 @@
|
||||
|
||||
typedef struct {
|
||||
driver_module_info info;
|
||||
|
||||
status_t (*queue_randomness)(uint64 value);
|
||||
} random_for_controller_interface;
|
||||
|
||||
|
||||
#define RANDOM_FOR_CONTROLLER_MODULE_NAME "bus_managers/random/controller/driver_v1"
|
||||
|
||||
// Bus manager interface used by Random controller drivers.
|
||||
typedef struct random_module_info {
|
||||
driver_module_info info;
|
||||
|
||||
status_t (*read)(void* cookie, void *_buffer, size_t *_numBytes);
|
||||
status_t (*write)(void* cookie, const void *_buffer, size_t *_numBytes);
|
||||
} random_module_info;
|
||||
|
||||
|
||||
#endif /* _RANDOM_H */
|
||||
|
||||
Reference in New Issue
Block a user