Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generate same password in the same second
Message
From
10/11/2008 03:44:41
 
 
To
10/11/2008 02:32:02
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01360833
Message ID:
01360845
Views:
5
>>try
>>
>>dim loRnd = new Random( DateTime.Now.Ticks.GetHashCode() );
>>
>
>It is the same thing.

Try
Dim loRnd As New Random(CInt(DateTime.Now().Ticks And &HFFFFFFFF&))
( Casting in C# allows unchecked conversion ; VB doesn't)

HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform