Stdev uses n-1 degrees of freedom where n stands for the number of elements in the dataset and std() uses n degrees of freedom. So your results can vary a little based on what function you use.