[idd] app: seed random generator at startup

This commit is contained in:
Geoffrey McRae
2026-09-01 18:29:54 +10:00
parent 8cd6219c86
commit 8e43d41873

View File

@@ -27,8 +27,13 @@
#include "ipc/CInputPipeServer.h"
#include "ipc/CPipeServer.h"
#include <stdlib.h>
#include <time.h>
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
{
srand((unsigned int)time(NULL));
g_debug.Init(L"looking-glass-idd");
DEBUG_INFO("Looking Glass IDD Driver (" LG_VERSION_STR ")");