PlaneShift

Fan Area => The Hydlaa Plaza => Topic started by: druke on November 03, 2003, 05:13:34 am

Title: clock resetter
Post by: druke on November 03, 2003, 05:13:34 am
i have been loking for a program and have been unable to find one of its type
i am trying to find a program that will reset my computer clokc over and over
i am looking for one to use to trick the java.rand program which uses the computer clock to get random numbers. anyone able to help?
Title:
Post by: explorer on November 03, 2003, 05:21:04 am
Sorry, dunno that one off the top of my head... But I have to be nosy, why do you want a program that\'ll do that?
Title:
Post by: sashok on November 03, 2003, 05:27:44 am
wow, :) you are bored

are you just trying to prove something with this?  
Yes, the random number generator is depending on clock, but I\'m not sure which clock.  Is it the computer\'s clock?  Then you really don\'t want to reset it.  As I\'m guessing it\'s the bios clock or the hardware generated clock.  Can it be reset without going into bios and resetting?  Or maybe I\'m way off :)
Title:
Post by: druke on November 03, 2003, 12:51:51 pm
i am just really bored
Title:
Post by: Axsyrus on November 03, 2003, 04:38:12 pm
hehe, trying to get around the 30 days trial date eh?

i think most programming languages have a function like this, i can remember Qbasic had something to set the clock..
Title:
Post by: Jessyn on November 03, 2003, 07:34:32 pm
there are two ways to create random numbers from the clock, but only one is easily feasible(as far as i know, there is no analog sine clock in most computers)  so the random is based on making a mathematical hash of the bios clock.  I\'m not sure about java, but in C, pascal, and BASIC, there was a command to set the clock to whatever you desired.  If you figured out the hash(or found it online) you could then set the clock to whatever value you wanted, and force the random command to give you whatever you wanted.  just look up clock reset commands in java.

Jessyn