use lodash random
This commit is contained in:
		
							parent
							
								
									64d7ea833f
								
							
						
					
					
						commit
						a654485bea
					
				| @ -14,7 +14,7 @@ export function objectIdFromDate(milliseconds: number, onlyDate: boolean = false | |||||||
|       return '0'; |       return '0'; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     return (Math.random() * 16 | 0).toString(16); |     return (_.random() * 16 | 0).toString(16); | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   const timestamp = (milliseconds / 1000 | 0).toString(16); |   const timestamp = (milliseconds / 1000 | 0).toString(16); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user