InTesting

KS2Hash (KS2Hash.constants)

Oct 13th, 2021 (edited)
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local constants = {}
  2.  
  3. function charRange(s, e)
  4.     assert(type(s) == 'string' and type(e)=='string')
  5.    
  6.     local res = ''
  7.    
  8.     for i = s:byte(), e:byte()do
  9.         res ..= string.char(i)
  10.     end
  11.    
  12.     return res
  13. end
  14.  
  15. constants.newBase = charRange(' ', '{') .. '}~'
  16.  
  17.  
  18. return constants
RAW Paste Data