Anchoring a safe doe require some consideration as to just what the floor is under it.
Basements are often floored with what is known in the trade as a "rat slab." It's a 2-3" thick unreinforced surface resting atop the footers. The concrete is optimized to flow easily, and to not "intrude" much into the very limited headroom in a basement. What that often means is that it's only around 1500-1800 psi concrete. This is not an ideal substance to sink compression anchor ("wedge") bolts. And, those need to be only 2/3 penetration into the slab, too. The way the wedge bolts work often needs 1.75 to 2 inches of depth to work.
Slab-on-grade houses sometimes fare no better, with slabs as thin as 3.5" thick (unless over a slab beam).
Concrete is fickle, virtually all of its strength is in compression, not in tension (this is why we embed reinforcement, for tensile strength).
Now, if you drill in and have 6 or more inches of concrete at all the bolt locations, you are golden--set in the anchors and crank them down. If you don't, your best option is to get a concrete epoxy (like Hilti) and set in suitable all-thread.
Wooden floors are an entirely different animal, and takes individual assessment.