• Stefy Lanza (nextime / spora )'s avatar
    Fix request ID generation to ensure uniqueness · 891795a3
    Stefy Lanza (nextime / spora ) authored
    - Added proper seeding of random number generator with time and PID
    - Prevents duplicate request IDs across program runs
    - Uses srand() with combination of current time and process ID
    - Ensures each tunnel session gets a truly unique request ID
    - Added thread-safe seeding with static flag to prevent reseeding
    - Fixed potential security issue with predictable request IDs
    - Improved randomness quality for tunnel identification
    891795a3
wsssh.c 25.9 KB