mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-09-02 04:03:56 +00:00
[idd] app: seed random generator at startup
This commit is contained in:
@@ -27,8 +27,13 @@
|
|||||||
#include "ipc/CInputPipeServer.h"
|
#include "ipc/CInputPipeServer.h"
|
||||||
#include "ipc/CPipeServer.h"
|
#include "ipc/CPipeServer.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
|
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
|
srand((unsigned int)time(NULL));
|
||||||
|
|
||||||
g_debug.Init(L"looking-glass-idd");
|
g_debug.Init(L"looking-glass-idd");
|
||||||
DEBUG_INFO("Looking Glass IDD Driver (" LG_VERSION_STR ")");
|
DEBUG_INFO("Looking Glass IDD Driver (" LG_VERSION_STR ")");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user