wlinds / tpme

This Person Might Exist - Synthetic dataset generation
2 stars 0 forks source link

Fix sloppy password generations #9

Open wlinds opened 8 months ago

wlinds commented 8 months ago

No wonder all generated passwords look ridiculous.

def gen_psw(name,age,anonymize):
  ## Password generation (sloppy)
  if anonymize:
    return 'REDACTED'
  return bucket.psw0[np.random.randint(0,len(bucket.psw0))] + str(datetime.date.today().year - age)[::-2]

This sloppy mf has been left untouched since it was added almost a year ago: 02d71af