mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Make randomize() use unix time too
This commit is contained in:
		
							parent
							
								
									c7b97f077a
								
							
						
					
					
						commit
						22efa850bd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -39,7 +39,7 @@ RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) : | |||
| } | ||||
| 
 | ||||
| void RandomPCG::randomize() { | ||||
| 	seed(OS::get_singleton()->get_ticks_usec() * pcg.state + PCG_DEFAULT_INC_64); | ||||
| 	seed((OS::get_singleton()->get_unix_time() + OS::get_singleton()->get_ticks_usec()) * pcg.state + PCG_DEFAULT_INC_64); | ||||
| } | ||||
| 
 | ||||
| double RandomPCG::random(double p_from, double p_to) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kobewi
						kobewi