1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 15:40:05 +00:00

fix: avoiding use of md5() in sysfunc(). Closes #239

This commit is contained in:
Allan Bowe
2022-05-12 10:14:19 +00:00
parent d587b44b34
commit ca7c332f20
2 changed files with 6 additions and 4 deletions

View File

@@ -58,7 +58,7 @@
%if %mf_getattrn(&libds,NLOBS)=0 %then %do;
data &outds;
length hashkey $32;
retain hashkey "%sysfunc(md5(%str(&salt)),$hex32.)";
hashkey=md5("&salt",$hex32.);
output;
stop;
run;
@@ -75,7 +75,8 @@
%end;
;
length &prevkeyvar &keyvar $32;
retain &prevkeyvar "%sysfunc(md5(%str(&salt)),$hex32.)";
retain &prevkeyvar;
if _n_=1 then &prevkeyvar=md5("&salt",$hex32.);
set &libds end=&lastvar;
/* hash should include previous row */
&keyvar=%mp_md5(