home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,581 of 243,242   
   Janis Papanagnou to Michael Sanders   
   Re: srand(0)   
   24 Dec 25 17:53:54   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 2025-12-24 17:17, Michael Sanders wrote:   
   >   
   > Unix:   
   > $ head -c 8 /dev/urandom | od -An | tr -d ' '   
   > 4fa2c3d17b9a8f12   
   >   
   > Windows:   
   > PS C:\Users\Bob>   
   > $bytes = New-Object byte[] 8   
   > [System.Security.Cryptography.RandomNumberGenerator]::Create()   
   GetBytes($bytes)   
   > [Console]::Write($bytes | ForEach-Object { "{0:x2}" -f $_ })   
      
   Amazing!  8-o   
      
   Or rather; frightening! ("The little Shop of Horrors")   
   A mixture (best/worst) of all; OO, Functional, and Shell?   
      
   What is that; "Powershell", or something else?   
   (I've mostly ignored Windows during the past 20+ years.)   
      
   Janis   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca