# SPDX-License-Identifier: MPL-2.0
import random
print("// SPDX-License-Identifier: MPL-2.0\n// This file contain the values to use as keys, values and search for the benchmarks of the radix trees subsystem\n// It's autogenerated by tools/generator/radix_tree_payload_gen.py\n// Copy the output of this script in this file to regenerate it.")
print("#ifndef SH_LIB_PAYLOADS_TEST_RADIX\n#define SH_LIB_PAYLOADS_TEST_RADIX\n#include \"std/type.h\"")
hex_char=["1","2","3","4","5","6","7","8","9","0","A","B","C","D","E","F"];
def randlist(num:int,hex_char_num:int,name:str):
  print("__attribute__((section(\".data\"))) sh_uint64 "+name+"["+str(num)+"]={",end="")
  for i in range(num):
    print("0x",end="")
    for y in range(hex_char_num):
      print(hex_char[random.randint(0,15)],end="")
    if i!=(num-1):
      print(",",end="")
  print("};")
randlist(10000,16,"test_keys")
randlist(10000,16,"test_values")
randlist(10000,16,"test_search")
print("#endif")
